diff --git a/.vimrc b/.vimrc index 49aa5cb..3eb9045 100644 --- a/.vimrc +++ b/.vimrc @@ -7,8 +7,9 @@ call vundle#begin() " let Vundle manage Vundle, required Plugin 'gmarik/Vundle.vim' Plugin 'vim-airline/vim-airline' +Plugin 'kien/ctrlp.vim' +Plugin 'tpop/vim-fugitive' Plugin 'scrooloose/nerdtree' -Plugin 'tpope/vim-fugitive' Plugin 'edkolev/tmuxline.vim' Plugin 'vim-airline/vim-airline-themes' "Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} @@ -45,3 +46,9 @@ map f :bp map d :bp:bd # "-----nerdtree-------------------- nmap e :NERDTreeToggle +" Search as you type, highlight results +set incsearch +set showmatch +set hlsearch +nnoremap \\ :noh " Clear higlighting +"nnoremap :noh diff --git a/setup.sh b/setup.sh index 67841fb..3c0326a 100755 --- a/setup.sh +++ b/setup.sh @@ -38,7 +38,7 @@ then read -p "do you want to install golang and go-powerline?" yn case $yn in [Yy]* ) - sudo apt-get install golang; + sudo apt-get install golang -y; go get -u github.com/justjanne/powerline-go; break;; [Nn]* ) @@ -48,6 +48,23 @@ then done fi +#----------------------------------------------------------install go-powerline--------------------------------------------------------------------------- + +if [ -z "$GOPATH" ] +then + while true; do + read -p "do you want to install golang and go-powerline?" yn + case $yn in + [Yy]* ) + sudo apt-get install golang -y; + go get -u github.com/justjanne/powerline-go; + break;; + [Nn]* ) + exit;; + * ) echo "Please answer yes or no.";; + esac + done +fi #----------------------------------------------------------install power line fonts------------------------------------------------------------------------ if [ ! -d ~/fonts ]