From d23254e3a0938e7beecf0bce5d24fdcfdda78c5f Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Sun, 10 Feb 2013 09:45:45 -0600 Subject: [PATCH] Added clear search on and cleaned up vimrc + mapped to also clear highlighted search + cleaned up unused mappings, comments, etc. from the vimrc --- vim/vimrc.symlink | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/vim/vimrc.symlink b/vim/vimrc.symlink index afb1a28..0b78535 100644 --- a/vim/vimrc.symlink +++ b/vim/vimrc.symlink @@ -11,7 +11,7 @@ Bundle 'gmarik/vundle' Bundle 'kien/ctrlp.vim' Bundle 'scrooloose/nerdtree' Bundle 'mileszs/ack.vim' -Bundle 'scrooloose/syntastic' +" Bundle 'scrooloose/syntastic' Bundle 'Raimondi/delimitMate' Bundle 'tpope/vim-commentary' Bundle 'tpope/vim-endwise' @@ -33,6 +33,7 @@ Bundle 'nono/vim-handlebars' Bundle 'tsaleh/vim-matchit' Bundle 'benmills/vimux' Bundle 'mattn/zencoding-vim' +Bundle 'int3/vim-taglist-plus' filetype plugin indent on @@ -194,16 +195,17 @@ set laststatus=2 " show the satus line all the time " General mappings/shortcuts for functionality " Additional, plugin-specific mappings are located under " the plugins section -" -" nnoremap K :q -" remap esc and disable to force learning +" clear search results on escape +nnoremap :nohlsearch + +" remap esc inoremap jk -" inoremap " remove extra whitespace nmap :%s/\s\+$ +" shortcut to save nmap , :w " set paste toggle @@ -260,24 +262,11 @@ map :call WinMove('j') map :call WinMove('k') map :call WinMove('l') -" nnoremap :vertical resize -5 -" nnoremap :resize +5 -" nnoremap :resize -5 -" nnoremap :vertical resize +5 - map wc :wincmd q " equalize windows map = = -" Edit Shortcuts -" these automatically populate the current filepath -cnoremap %% =expand('%:h').'/' -map ew :e %% -map es :sp %% -map ev :vsp %% -map et :tabe %% - " toggle cursor line nnoremap i :set cursorline!