Upgrade to Vim 7.4 on OS X El Capitan

I am new to Vim, but decided to learn this. I am on OS X El Capitan and tried to upgrade Vim 7.3 to 7.4 using several options, but without success.

I used the option brew install with --with-system-override-vim, but although I see that vim 7.4 is installed, when I start my Vim editor, it returns back to version 7.3 again.

Someone can guide me through the process of checking the system version to version 7.4.

+4
source share
3 answers

Pretty sure hometown installs vim under /usr/local/bin/

You really should not overwrite the vim system, you should use an alias for your .bash_profilefile,

alias vim='/usr/local/bin/vim'

Another option is to "hide" the current vim

mv /usr/bin/vim /usr/bin/vim73

, vim, /usr/bin/ /usr/local/bin/

+5

@dursk , /usr/local/bin/vim. MacVim it 8.0 (http://macvim-dev.imtqy.com/macvim/) MacVim .dmg

.bash_profile

alias vim="/Applications/MacVim.app/Contents/MacOS/Vim"

source ~/.bash_profile bash_profile

0

vi/vim /usr/bin. homebrew vim:

brew update
brew install vim

vim /usr/local/bin/vim. , $PATH /usr/local/bin /usr/bin. , vi /usr/local/bin:

ln -s /usr/local/bin/vim /usr/local/bin/vi

which vim # verify that it is /usr/local/bin/vim
which vi # verify that it is /usr/local/bin/vi
0

Source: https://habr.com/ru/post/1612131/


All Articles