Skip to content

Instantly share code, notes, and snippets.

@Liam0205
Created November 2, 2018 03:17
Show Gist options
  • Save Liam0205/850ed65fbd36aed053c2405d963055c6 to your computer and use it in GitHub Desktop.
Save Liam0205/850ed65fbd36aed053c2405d963055c6 to your computer and use it in GitHub Desktop.
Compile and install VIM on CentOS 6.x without root.
#!/bin/bash
git clone https://github.com/vim/vim.git --depth=1
cd vim
make -p $HOME/local/bin
./configure --prefix=$HOME/local/vim --enable-multibyte --with-tlib=tinfo --enable-pythoninterp --enable-rubyinterp --with-ruby-command=/usr/bin/ruby --with-features=huge
make -j24
make install
cd $HOME/local/bin
for file in $(ls $HOME/local/vim/bin); do ln -sf $HOME/local/vim/bin/$file $file; done
cd $HOME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment