Installing vim 7.4 on Ubuntu

Vim 7.4 was released yesterday, and as it’s not in any repos yet and there’s no PPA available, our only option is to install it from source.

First, we make sure that all of our dependencies are available

sudo apt-get install mercurial build-essential ncurses-dev

Then, we clone the latest source

hg clone vim

And we build it with all of the features we can

cd vim/src
make distclean
./configure --with-features=huge --enable-pythoninterp --enable-rubyinterp
sudo make install

It’ll be installed into /usr/local/bin/vim. You can check the version using:

/usr/local/bin/vim --version

Add it to your path with:

export PATH=/usr/local/bin:$PATH

Then just type vim to start using it.

Michael is a polyglot software engineer, committed to reducing complexity in systems and making them more predictable. Working with a variety of languages and tools, he shares his technical expertise to audiences all around the world at user groups and conferences. You can follow @mheap on Twitter

Thoughts on this post

Leave a comment?

Leave a Reply