From 87eb242cf0a827781f846204276daa5237d7dd2c Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Thu, 17 Dec 2020 11:34:25 -0500 Subject: [PATCH] vim searching, ctrlp, and setup --- .vimrc | 10 ++++++++-- setup.sh | 19 ++++++++++++++++++- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index f3924f3..d29b198 100644 --- a/.vimrc +++ b/.vimrc @@ -7,11 +7,11 @@ 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 'chrisbra/csv.vim' "Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} " All of your Plugins must be added before the following line call vundle#end() " required @@ -46,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 ]