Last active
April 11, 2016 23:32
-
-
Save dragonxlwang/adad90f1c952c87da6f4862f14925641 to your computer and use it in GitHub Desktop.
timan-install-vim
This file contains hidden or 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
sudo yum install -y ruby ruby-devel lua lua-devel luajit \ | |
luajit-devel ctags git python python-devel \ | |
python3 python3-devel tcl-devel \ | |
perl perl-devel perl-ExtUtils-ParseXS \ | |
perl-ExtUtils-XSpp perl-ExtUtils-CBuilder \ | |
perl-ExtUtils-Embed | |
cd ~ | |
version=7.4.1724 | |
curl -OL https://github.com/vim/vim/archive/v$version.tar.gz | |
tar -zxvf v$version.tar.gz | |
cd vim-$version | |
./configure --prefix=/usr/local \ | |
--with-features=huge \ | |
--enable-multibyte \ | |
--enable-rubyinterp \ | |
--enable-pythoninterp \ | |
--with-python-config-dir=/usr/local/lib/python2.7/config \ | |
--enable-perlinterp \ | |
--enable-luainterp \ | |
--enable-gui=gtk2 --enable-cscope \ | |
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" | |
make VIMRUNTIMEDIR=/usr/local/share/vim/vim74 | |
make install |
This file contains hidden or 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 ~/.vim/ | |
/bin/rm -rf ./bundle/YouCompleteMe | |
vim +PluginInstall +qall | |
mkdir ycm_build | |
cd ycm_build | |
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" \ | |
cmake -G "Unix Makefiles" -DEXTERNAL_LIBCLANG_PATH=/home/xwang95/llvm/build/lib/libclang.so \ | |
. ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp | |
cmake --build . --target ycm_core | |
ldd ../bundle/YouCompleteMe/third_party/ycmd/ycm_core.so | |
cd .. | |
/bin/rm -rf ycm_build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment