Delegate YCM compile to curled install.sh
This commit is contained in:
parent
cc01aee4e4
commit
1a7f0ae4fd
26
install/vim
26
install/vim
|
@ -35,22 +35,16 @@ if [ ! -e ~/.vimrc ]; then
|
|||
rm ~/.vimrc.bundles
|
||||
rm ~/.gvimrc
|
||||
fi
|
||||
sh <(curl https://raw.github.com/hlissner/mlvim/master/install.sh -L) | indent
|
||||
fi
|
||||
|
||||
# Installing/updating vim bundles
|
||||
echo-g "==> Vim: Updating..."
|
||||
find ~/.vim/bundle/ -type d -name .git \
|
||||
| xargs -n 1 dirname \
|
||||
| while read line; do cd $line && echo -n "* $(basename $line): " && git pull; done
|
||||
|
||||
# Compiling YouCompleteMe
|
||||
YVM_DIR="~/.vim/bundle/YouCompleteMe"
|
||||
if [ -d $YVM_DIR ] && [ ! -e $YVM_DIR/python/ycm_core.so ]; then
|
||||
echo-g "==> Vim: Trying to compile YCM"
|
||||
pkg-install cmake
|
||||
cd ~/.vim/bundle/YouCompleteMe
|
||||
./install.sh --clang-completer
|
||||
if is_deb; then
|
||||
pkg-install cmake
|
||||
fi
|
||||
sh <(curl https://raw.github.com/hlissner/mlvim/master/install.sh -L)
|
||||
else
|
||||
# Installing/updating vim bundles
|
||||
echo-g "==> Vim: Updating..."
|
||||
find ~/.vim/bundle/ -type d -name .git \
|
||||
| xargs -n 1 dirname \
|
||||
| while read line; do cd $line && echo -n "* $(basename $line): " && git pull; done
|
||||
fi
|
||||
|
||||
echo-g "==> Vim: DONE!"
|
||||
|
|
Loading…
Reference in a new issue