From 74968572d9656c4d1c7771221d8655f76e74c955 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 30 Dec 2016 05:20:13 -0500 Subject: [PATCH] Refactors ci( and ci[ behavior --- configs/.vimrc | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/configs/.vimrc b/configs/.vimrc index 6b733d473..24e1f982c 100644 --- a/configs/.vimrc +++ b/configs/.vimrc @@ -83,6 +83,9 @@ Plugin 'flazz/vim-colorschemes' " Dash integration (macOS only) Plugin 'rizzatti/dash.vim' +" Better buffer mgt than CtrlP +Plugin 'yegappan/mru' + call vundle#end() " required filetype plugin indent on " required " Put your non-Plugin stuff after this line @@ -193,13 +196,15 @@ set relativenumber " emulate ci" and ci' behavior -nnoremap ci( f)ci( -nnoremap ci[ f]ci[ +nnoremap ci( f(%ci( +nnoremap ci[ f[%ci[ " extend functionality of & scrolling nnoremap j +vnoremap j nnoremap k +vnoremap k " Opens all folds within the buffer @@ -237,6 +242,10 @@ nnoremap :w nnoremap +" Alternative MRU to CtrlP MRU +nnoremap b :MRU + + " Supports mouse interaction. set mouse=a @@ -244,8 +253,8 @@ set mouse=a " Highlights matches during a search. set hlsearch -" Search for gibberish to clear the most recent search -noremap / :silent! /__wc_gibberish__/:echo "Search cleared." +" Clear highlight +noremap / :nohlsearch " backspace settings @@ -288,12 +297,7 @@ nnoremap sk :sp nnoremap q :bdelete -" CtrlP config -" Set default CtrlP command. -let g:ctrlp_cmd = 'CtrlPBuffer' -" let g:ctrlp_cmd = 'CtrlPMRU' - -" Set runtime path +" Set CtrlP runtime path set runtimepath^=~/.vim/bundle/ctrlp.vim