Created
March 13, 2017 10:47
-
-
Save bafxyz/7deebc34d1139f68e36d0e616ef1e2e9 to your computer and use it in GitHub Desktop.
Install vim locally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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