Skip to content

Instantly share code, notes, and snippets.

@bafxyz
Created March 13, 2017 10:47
Show Gist options
  • Save bafxyz/7deebc34d1139f68e36d0e616ef1e2e9 to your computer and use it in GitHub Desktop.
Save bafxyz/7deebc34d1139f68e36d0e616ef1e2e9 to your computer and use it in GitHub Desktop.
Install vim locally
cd
if [ ! -d ~/.local ]; then
mkdir ~/.local
fi
if [ ! -d ~/bin ]; then
mkdir ~/bin
fi
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
tar -jxvf vim-7.4.tar.bz2
cd vim74
./configure --prefix=$HOME/.local --with-features=huge --enable-pythoninterp
make && make install
cd ..
rm -rf vim74 vim-7.4.tar.bz2
ln -s ~/.local/bin/vim ~/bin/vim
if [[ :$PATH: == *:"$HOME/bin":* ]] ; then
:
else
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
fi
echo 'alias vi="vim"' >> ~/.bashrc
. ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment