Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
81 views
in Technique[技术] by (71.8m points)

How update vim to 8.0 version in OSX?

The current vim i'm using is 7.3 version.

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 14 2016 16:06:49)
Compiled by [email protected]

I tried to update vim to 8.0 by the command:

git clone https://github.com/vim/vim.git
cd vim/src
make

However, it doesn't work. It's still vim 7.3.

question from:https://stackoverflow.com/questions/39861793/how-update-vim-to-8-0-version-in-osx

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You may have compiled vim, but the vim that's first in your path is still the system vim. You can show that using:

$ which vim
/usr/bin/vim

You can either call your compiled vim directly (probably in a folder called dist or bin), or put it in a place that is before /usr/bin in your $PATH variable. The easiest way to get an up-to-date vim on OS X is to use Homebrew:

$ brew install vim --with-override-system-vi

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...