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. 6
      install.sh

1
.vim/startup/vundle_vimrc

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

6
install.sh

@ -1,10 +1,16 @@
#!/bin/bash #!/bin/bash
VIMDIR=${1:-$HOME} VIMDIR=${1:-$HOME}
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/.vim $VIMDIR/.vim.old
mv $VIMDIR/.vimrc $VIMDIR/.vimrc.old mv $VIMDIR/.vimrc $VIMDIR/.vimrc.old
ln -s $PWD/.vim $VIMDIR/.vim 2> /dev/null ln -s $PWD/.vim $VIMDIR/.vim 2> /dev/null
cat $PWD/_vimrc > $PWD/.vimrc cat $PWD/_vimrc > $PWD/.vimrc
ln -s $PWD/.vimrc $VIMDIR/.vimrc 2> /dev/null ln -s $PWD/.vimrc $VIMDIR/.vimrc 2> /dev/null
fi
git submodule init && git submodule update git submodule init && git submodule update

Loading…
Cancel
Save