Update vim install script
This commit is contained in:
parent
bfc8fe696c
commit
625f388b9b
11
install/vim
11
install/vim
|
@ -3,7 +3,7 @@
|
||||||
# Installing macvim/compiling vim
|
# Installing macvim/compiling vim
|
||||||
if is_mac && ! command_exists "mvim"; then
|
if is_mac && ! command_exists "mvim"; then
|
||||||
echo-g "==> Installing macvim"
|
echo-g "==> Installing macvim"
|
||||||
brew install macvim --with-cscope --override-system-vim
|
brew install macvim --devel --with-lua --override-system-vim
|
||||||
elif is_deb && ! vim --version | grep "Compiled by $(whoami)@$(hostname)" 2>&1 >/dev/null; then
|
elif is_deb && ! vim --version | grep "Compiled by $(whoami)@$(hostname)" 2>&1 >/dev/null; then
|
||||||
echo-g "==> Preparing to compile vim from source"
|
echo-g "==> Preparing to compile vim from source"
|
||||||
pkg-install libncurses5-dev libgnome2-dev libgnomeui-dev \
|
pkg-install libncurses5-dev libgnome2-dev libgnomeui-dev \
|
||||||
|
@ -19,8 +19,9 @@ elif is_deb && ! vim --version | grep "Compiled by $(whoami)@$(hostname)" 2>&1 >
|
||||||
--enable-rubyinterp \
|
--enable-rubyinterp \
|
||||||
--enable-pythoninterp \
|
--enable-pythoninterp \
|
||||||
--enable-perlinterp \
|
--enable-perlinterp \
|
||||||
|
--enable-luainterp \
|
||||||
--enable-gui=gtk2 --enable-cscope --prefix=/usr
|
--enable-gui=gtk2 --enable-cscope --prefix=/usr
|
||||||
make VIMRUNTIMEDIR=/usr/share/vim/vim73
|
make VIMRUNTIMEDIR=/usr/share/vim/vim74b
|
||||||
sudo make install
|
sudo make install
|
||||||
rm -rf ~/vim
|
rm -rf ~/vim
|
||||||
fi
|
fi
|
||||||
|
@ -40,13 +41,11 @@ if [ ! -e ~/.vimrc ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install vim from my distro: https://github.com/hlissner/mlvim
|
# Install vim from my distro: https://github.com/hlissner/mlvim
|
||||||
bash <(curl https://raw.github.com/hlissner/mlvim/master/install.sh -L)
|
bash <(curl https://raw.github.com/hlissner/vim/master/install.sh -L)
|
||||||
else
|
else
|
||||||
# Installing/updating vim bundles
|
# Installing/updating vim bundles
|
||||||
echo-g "==> Vim: Updating..."
|
echo-g "==> Vim: Updating..."
|
||||||
find ~/.vim/bundle/ -type d -name .git \
|
vim +NeoBundleUpdate +qall
|
||||||
| xargs -n 1 dirname \
|
|
||||||
| while read line; do cd $line && echo -n "* $(basename $line): " && git pull; done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo-g "==> Vim: DONE!"
|
echo-g "==> Vim: DONE!"
|
||||||
|
|
Loading…
Reference in a new issue