Clean up CommandT/CommandP settings

This commit is contained in:
ViViDboarder 2014-03-04 10:54:07 -08:00
parent 21bacac7b6
commit 0aff4de7cb
1 changed files with 14 additions and 13 deletions

View File

@ -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 = '<esc>'
" 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 = '<esc>'
" 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 <silent><C-t> :CommandT<CR>
nnoremap <silent><C-b> :CommandTBuffer<CR>
@ -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 = '<C-t>'
" Leader Commands
nnoremap <leader>b :CtrlPBuffer<CR>
nnoremap <leader>u :CtrlPCurFile<CR>
nnoremap <leader>m :CtrlPMRUFiles<CR>
endif
" Also map leader commands
nnoremap <leader>u :CtrlPCurFile<CR>
nnoremap <leader>m :CtrlPMRUFiles<CR>
" fugitive
" Add some shortcuts for git commands
nnoremap <leader>gs :Gstatus<CR>