Skip to content

Instantly share code, notes, and snippets.

@ctokheim
Last active November 30, 2015 20:51
Show Gist options
  • Save ctokheim/c65061250e9eb590d424 to your computer and use it in GitHub Desktop.
Save ctokheim/c65061250e9eb590d424 to your computer and use it in GitHub Desktop.
VIM tricks

Install VIM Locally

Go to VIM website and download VIM:

$ wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
$ tar xjf vim-7.4.tar.bz2
$ cd vim74
$ mkdir -p ~/local
$ ./configure --prefix=/home/username/local
$ make install

Unfortuneately VIM may look for dependencies on the system level. This may cause syntax highlighting to fail. To force VIM to use only the locally installed files associated with your new VIM you must change an environment variable in your ~/.bashrc file.

export VIMRUNTIME=/home/ctokheim/local/share/vim/vim74/

Then either logout and back in or source ~/.bashrc. Of course you may also want to add the path to the vim executable to the system path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment