diff --git a/vim/dot_vimrc b/vim/dot_vimrc index cf8cfc6..310e373 100644 --- a/vim/dot_vimrc +++ b/vim/dot_vimrc @@ -321,21 +321,21 @@ let g:tagbar_autofocus = 1 " Command T and ctrlp.vim " Snagged from mutewinter @ https://github.com/mutewinter/dot_vim " --------------- -" Ensure Ctrl-P isn't bound by default -let g:ctrlp_map = '' - -" Ensure max height isn't too large. (for performance) -let g:ctrlp_max_height = 10 -let g:CommandTMaxHeight = 10 - -" Set the default escape keybinding to, you guessed it, escape. -let g:CommandTCancelMap = '' " Dynamically use Command T or ctrlp.vim based on availability of Ruby. " We do this because Command T is much faster than ctrlp.vim. if has('ruby') " Use Command T since we've got Ruby + " Set the default escape keybinding to, you guessed it, escape. + let g:CommandTCancelMap = '' + + " Ensure Ctrl-P isn't bound by default + let g:ctrlp_map = '' + + " Ensure max height isn't too large. (for performance) + let g:CommandTMaxHeight = 10 + " Mappings nnoremap :CommandT nnoremap :CommandTBuffer @@ -347,17 +347,18 @@ if has('ruby') else " Use ctrlp.vim since we don't have Ruby + " Ensure max height isn't too large. (for performance) + let g:ctrlp_max_height = 10 + " Conditional Mappings let g:ctrlp_map = '' " Leader Commands nnoremap b :CtrlPBuffer + nnoremap u :CtrlPCurFile + nnoremap m :CtrlPMRUFiles endif -" Also map leader commands -nnoremap u :CtrlPCurFile -nnoremap m :CtrlPMRUFiles - " fugitive " Add some shortcuts for git commands nnoremap gs :Gstatus