Dependencies (Building Vim)
sudo apt-get install build-essential libncurses5-dev sudo apt-get install libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev sudo apt-get install python2.7-dev
Note: To see a list of dependencies which Ubuntu thinks are required for
apt-get build-dep vim.
cd ~/repo/src hg clone https://vim.googlecode.com/hg/ vim cd ~/repo/src/vim/src/ rm auto/config.cache make distclean ./configure --enable-pythoninterp --enable-gui=gnome2 --with-features=huge --enable-multibyte
Check the output from the
configurecommand. Near the beginning of the output is the following section:
checking for python... /usr/bin/python checking Python version... 2.7 checking Python is 1.4 or better... yep checking Python's install prefix... /usr checking Python's execution prefix... /usr checking Python's configuration directory... /usr/lib/python2.7/config
Note: Make sure that the
configuration directoryis found.
A bit further down you can find the GUI support section:
checking --enable-gui argument... GNOME 2.x GUI support
Note: Make sure that you have GUI support.
vimwill run correctly, we must do a
If you want to install in your home directory, edit the ``Makefile`` and search for the line: #prefix = $(HOME) Remove the # at the start of the line. To install Vim do: make install That should move all the relevant files to the right place. Now you can try running vim to verify that it works. Use two simple tests to check if Vim can find its runtime files: :help :syntax enable If this doesn't work, use this command to check where Vim is looking for the runtime files: :echo $VIMRUNTIME You can also start Vim with the "-V" argument to see what happens during startup: vim -V
cd ~/repo/src/vim/src/ ./vim ./vim -g