Browse Source

finish install.sh & add vim-plugin

pull/4/head
Ein Verne 9 years ago
parent
commit
ee4dd57a8b
  1. 1
      .vim/startup/vundle_vimrc
  2. 16
      install.sh

1
.vim/startup/vundle_vimrc

@ -29,6 +29,7 @@ Plugin 'Raimondi/delimitMate'
"show tabs
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'vim-scripts/taglist.vim'
Plugin 'WolfgangMehner/vim-plugins'
" Plugin 'powerline/powerline', {'rtp': 'powerline/bindings/vim/'}
" Plugin 'Lokaltog/vim-powerline'
" Plugin 'bling/vim-airline'

16
install.sh

@ -1,10 +1,16 @@
#!/bin/bash
VIMDIR=${1:-$HOME}
mv $VIMDIR/.vim $VIMDIR/.vim.old
mv $VIMDIR/.vimrc $VIMDIR/.vimrc.old
ln -s $PWD/.vim $VIMDIR/.vim 2> /dev/null
cat $PWD/_vimrc > $PWD/.vimrc
ln -s $PWD/.vimrc $VIMDIR/.vimrc 2> /dev/null
echo "start install, all of your old .vimrc and .vim will be overwritten."
echo "all your old vim settings will be mv to .vimrc.old & .vim.old"
echo -en "Do you want to continue?[y/n]"
read -n 1 use_vim_configs
if [ "$use_vim_configs" == "Y" ] || [ "$use_vim_configs" == "y" ]; then
mv $VIMDIR/.vim $VIMDIR/.vim.old
mv $VIMDIR/.vimrc $VIMDIR/.vimrc.old
ln -s $PWD/.vim $VIMDIR/.vim 2> /dev/null
cat $PWD/_vimrc > $PWD/.vimrc
ln -s $PWD/.vimrc $VIMDIR/.vimrc 2> /dev/null
fi
git submodule init && git submodule update

Loading…
Cancel
Save