I've been playing with VimPlugin for a little while now, and it's very cool. I have only discovered one issue that is stopping me from using it full-time. I can open a file with Vim, and it displays as a tab in Eclipse. However, when I try right-click on a second file and go to "Open With -> Vim", a new tab opens that is blank. I saw a Google SoC blog post somewhere that seemed to suggest that it was possible to open multiple instances in tabs, but that this wasn't the default. Is this correct?
Thanks for your help. If I can find the solution to this, I'll write it up on the Tips & Tricks Wiki page.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We have two types of Editors: VimEditor and VimEditorNewProcess.
VimEditor has the issue you described. But perhaps you havent noticed that vimplugin opens the file as a buffer in the already running viminstance?
VimEditorNewProcess opens each file in a completely new gvim instance which is quite ressource demanding.
You can assign both editors via Preferences|General|Filetype-Associations.
Until now we have no clear idea how this should be fixed. The problem is that both gvim and eclipse have notions of "buffers" or "currently open files" etc. Which one is favorable?
Regards, Sebastian.
PS: What OS/Eclipse Version are you running?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For VimEditor mode the same instance of gvim could be shown in each opened tab. Just active buffer would be changed when going from tab to tab. In case of two visible tabs user would however experience strange behavior of simultaneous active buffer change in both opened and visible tabs containing same instance of gvim but it could be more userfriendly than empty tabs.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That works great, thanks! I should have spent more time poking around the options and found that myself. Later on, I did notice that files were opened as multiple buffers within the one Vim tab, but I'm still new to Vim, so I'm more comfortable with switching between files using the tabs. As to the question of which is preferable, I don't really know, since I don't know the Vim buffer mechanism very well. I suppose that part of the reason why I want to have Vim within Eclipse is to make use of some of the visual things that Vim does so well. There was that old study that was quoted on Reddit recently, where the researchers said that users always felt that the keyboard was faster, but the stopwatch always said that the mouse was faster (or something like that). I can see that happening in some circumstances, but if this were always true, why have a keyboard at all? Would it would be faster to click an onscreen keyboard with the mouse to type a 5000 word essay? I don't think so. One area where the mouse/visual paradigm has a definite advantage would be seeing which buffers are open. Since there are tabs, it's always visible. I'm not sure what would be faster for switching buffers, point-and-click or the keyboard. I think that both will probably be desired by different users for the forseeable future.
Anyway, I'm on Ubuntu 8.04 and Eclipse 3.3.2 with C++ dev tools.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Correction: "some of the visual things that __Eclipse__ does well."
By that, I mean that Eclipse can convey a lot of information through tree-views, icons, etc... All that info is just available at a glance, and your eyes can flick over to see it faster than what would be required to enter a command to bring it up and _then_ see it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been playing with VimPlugin for a little while now, and it's very cool. I have only discovered one issue that is stopping me from using it full-time. I can open a file with Vim, and it displays as a tab in Eclipse. However, when I try right-click on a second file and go to "Open With -> Vim", a new tab opens that is blank. I saw a Google SoC blog post somewhere that seemed to suggest that it was possible to open multiple instances in tabs, but that this wasn't the default. Is this correct?
Thanks for your help. If I can find the solution to this, I'll write it up on the Tips & Tricks Wiki page.
We have two types of Editors: VimEditor and VimEditorNewProcess.
VimEditor has the issue you described. But perhaps you havent noticed that vimplugin opens the file as a buffer in the already running viminstance?
VimEditorNewProcess opens each file in a completely new gvim instance which is quite ressource demanding.
You can assign both editors via Preferences|General|Filetype-Associations.
Until now we have no clear idea how this should be fixed. The problem is that both gvim and eclipse have notions of "buffers" or "currently open files" etc. Which one is favorable?
Regards, Sebastian.
PS: What OS/Eclipse Version are you running?
For VimEditor mode the same instance of gvim could be shown in each opened tab. Just active buffer would be changed when going from tab to tab. In case of two visible tabs user would however experience strange behavior of simultaneous active buffer change in both opened and visible tabs containing same instance of gvim but it could be more userfriendly than empty tabs.
That works great, thanks! I should have spent more time poking around the options and found that myself. Later on, I did notice that files were opened as multiple buffers within the one Vim tab, but I'm still new to Vim, so I'm more comfortable with switching between files using the tabs. As to the question of which is preferable, I don't really know, since I don't know the Vim buffer mechanism very well. I suppose that part of the reason why I want to have Vim within Eclipse is to make use of some of the visual things that Vim does so well. There was that old study that was quoted on Reddit recently, where the researchers said that users always felt that the keyboard was faster, but the stopwatch always said that the mouse was faster (or something like that). I can see that happening in some circumstances, but if this were always true, why have a keyboard at all? Would it would be faster to click an onscreen keyboard with the mouse to type a 5000 word essay? I don't think so. One area where the mouse/visual paradigm has a definite advantage would be seeing which buffers are open. Since there are tabs, it's always visible. I'm not sure what would be faster for switching buffers, point-and-click or the keyboard. I think that both will probably be desired by different users for the forseeable future.
Anyway, I'm on Ubuntu 8.04 and Eclipse 3.3.2 with C++ dev tools.
Correction: "some of the visual things that __Eclipse__ does well."
By that, I mean that Eclipse can convey a lot of information through tree-views, icons, etc... All that info is just available at a glance, and your eyes can flick over to see it faster than what would be required to enter a command to bring it up and _then_ see it.