Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using the correct version of vim

I installed vim with:

brew install vim --override-system-vi

I also installed macvim using:

brew install macvim

However, terminal vim uses 7.4.52 and macvim uses 7.4.22. Any way around this?

I've uninstalled and reinstalled many times, but I must be doing it wrong...

which vim returns /usr/local/bin/vim

which mvim returns /usr/local/bin/mvim

Any help would be greatly appreciated.

Thnx!

like image 968
DavidVII Avatar asked Nov 08 '13 00:11

DavidVII


2 Answers

You only need to install macvim: it runs both as a GUI and in the terminal.

I don't know where the confusion comes from but neither gvim nor macvim are frontends for a separate vim. They are vim.

like image 192
romainl Avatar answered Sep 27 '22 20:09

romainl


you can rename your system vim, then vim will be the mac vim

like image 41
kuka Avatar answered Sep 27 '22 20:09

kuka