Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How update vim to 8.0 version in OSX?

Tags:

vim

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.

like image 415
Ladih Avatar asked Oct 04 '16 21:10

Ladih


People also ask

How do I update vim to latest version?

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 .

How do I find Vim version on Mac?

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.

How do I install a specific version of Vim?

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\* .

Does MacOS have vim?

VIM allows you to create and edit text files on your Mac. It is wonderful, fast and free.


2 Answers

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
like image 190
L3viathan Avatar answered Oct 16 '22 12:10

L3viathan


Trying

brew install vim --override-system-vim

didn't work for me either.

Upgrade Homebrew to latest version and then use

brew upgrade vim
like image 14
David Ding Avatar answered Oct 16 '22 13:10

David Ding