From ee4dd57a8bc9b7f57e419c4ba62372d5d5fb8276 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Mon, 21 Sep 2015 18:47:30 +0800 Subject: [PATCH] finish install.sh & add vim-plugin --- .vim/startup/vundle_vimrc | 1 + install.sh | 16 +++++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.vim/startup/vundle_vimrc b/.vim/startup/vundle_vimrc index 39ac25b..a50eab1 100644 --- a/.vim/startup/vundle_vimrc +++ b/.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' diff --git a/install.sh b/install.sh index 4e5b011..413691a 100755 --- a/install.sh +++ b/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