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.
I would generally recommend using sudo apt-get update ; sudo apt-get dist-upgrade , as this will update everything that apt-get can update on your system. If you don't already have VIM installed, you can get it using sudo apt-get install vim .
You can also just open a blank VIM document by typing vi or vim in your terminal. The welcome screen will state your version as well as other information.
To downgrade, change the version of Vim, try the following methods. Find the available Vim package via apt-cache search ^vim . Find the available version of the package: apt-cache madison vim . Install the available version by: sudo apt-get install vim=2:8.0\* .
VIM allows you to create and edit text files on your Mac. It is wonderful, fast and free.
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
Trying
brew install vim --override-system-vim
didn't work for me either.
Upgrade Homebrew to latest version and then use
brew upgrade vim
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With