11

Should I install vim or GVim ?

I develop mainly Ruby on Rails (I also use IDE's, but different topic).

enter image description here

Are there any differences or advantage of using Gvim vs vim ?

  • Just found vimdiff <(./abc.sh) <(./abc2.sh) doesn't works([1]+ Stopped...blah blah) but gvimdiff <(./abc.sh) <(./abc2.sh) works, i use Fedora 21 gnome 3. – 林果皞 Apr 6 '16 at 8:31
8

In gVim you can select the font, vim depends on the font the terminal provides. And it's the same for colour support. Gvim has full support, vim depends on the terminal.

Gvim additionally has menus and a toolbar, which vim lacks.

One big advantage of vim is that, since it's a terminal application, you have a full fledged terminal at your fingertips. gVim has very rudimentary terminal support. This is handy if you run :make, for instance.

  • 2
    Maybe add that gvim has mouse enabled by default, and vim don't (although it's easy to enable it with set mouse=a). Also, most colorschemes are written for gvim and not for vim so it's easier to use these out of the box (although using the guicolorscheme.vim scripts works fine also). Yes, I'm using vim. – user13742 Jun 13 '12 at 21:04
  • 7
    Why on earth do you need a mouse in vim? – Bernhard Jul 25 '13 at 14:06
  • @Bernhard To resize vertical/horizontal splits faster than with a keyboard. – Étienne Reinstate Monica Apr 2 '14 at 15:07
  • 2
    @Étienne That is not faster. Will have to grab my mouse first ;) – Bernhard Apr 2 '14 at 17:11
  • Not a big issue if you have a touchpad or trackpoint at hand. – Kos Oct 5 '14 at 18:34
2

Install both and try them both, they use the same configuration etc. so there's no risk.

As far as differences are concerned: one is a graphical tool one is a command line tool. So the advantage of vim to gvim is that you can use it easily over an ssh connection. (You can do the same with gvim by tunneling X but that has quite some overhead.

  • The risk is to scatter your energies too thin and get discouraged. I've tried over 20 editors / IDEs by now, and because I never committed myself to learning one well, I'm suffering. Currently discovering the joys of vim with plugins. :-) – ankush981 Nov 13 '15 at 14:56
2

gvim package shall have all vim coming along. Meaning, if you wish to fall back to vanilla vim you can.

Anyway, the biggest difference IMO is that vim depends on the terminal to handle special characters and key-sequences. If you wish to map and exploit things like <c-space>, <m-ins>, ... just forget about it with vim.

Of course gvim has menus, mouse, toolbar, etc. But that's just a small bonus compared to a fully functional keyboard.

1

They both are the same if you see performance wise but if you want good looks and want to customize the editor so that it does not look boring then you would like to try the enhanced version of vim.

1

For me, the biggest disadvantage to using gvim over vim is that you can't run it inside a detachable container. I run vim inside tmux, which allows me to detach the running session and reattach it later. For example, I can detach my session at work, go home, ssh in to work, and reattach to the already-running session. I also do a lot of work on remote VPS hosts, which makes the ability to reattach more important, since I might lose my ssh connection. Gvim is appealing to new vim users, and it's a nice way to get started, but once you're a vim power user, menus and other GUI elements just slow you down. Vim can be configured to use a mouse in terminal mode (even over SSH), and if you set your terminal to use 256 colors and a nice Unicode font, you can get pretty fancy without the overhead of a GUI.

Not the answer you're looking for? Browse other questions tagged or ask your own question.