mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-08 08:27:36 +00:00
Clean up CommandT/CommandP settings
This commit is contained in:
parent
21bacac7b6
commit
0aff4de7cb
@ -321,21 +321,21 @@ let g:tagbar_autofocus = 1
|
|||||||
" Command T and ctrlp.vim
|
" Command T and ctrlp.vim
|
||||||
" Snagged from mutewinter @ https://github.com/mutewinter/dot_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.
|
" Dynamically use Command T or ctrlp.vim based on availability of Ruby.
|
||||||
" We do this because Command T is much faster than ctrlp.vim.
|
" We do this because Command T is much faster than ctrlp.vim.
|
||||||
if has('ruby')
|
if has('ruby')
|
||||||
" Use Command T since we've got 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
|
" Mappings
|
||||||
nnoremap <silent><C-t> :CommandT<CR>
|
nnoremap <silent><C-t> :CommandT<CR>
|
||||||
nnoremap <silent><C-b> :CommandTBuffer<CR>
|
nnoremap <silent><C-b> :CommandTBuffer<CR>
|
||||||
@ -347,17 +347,18 @@ if has('ruby')
|
|||||||
else
|
else
|
||||||
" Use ctrlp.vim since we don't have Ruby
|
" 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
|
" Conditional Mappings
|
||||||
let g:ctrlp_map = '<C-t>'
|
let g:ctrlp_map = '<C-t>'
|
||||||
|
|
||||||
" Leader Commands
|
" Leader Commands
|
||||||
nnoremap <leader>b :CtrlPBuffer<CR>
|
nnoremap <leader>b :CtrlPBuffer<CR>
|
||||||
|
nnoremap <leader>u :CtrlPCurFile<CR>
|
||||||
|
nnoremap <leader>m :CtrlPMRUFiles<CR>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Also map leader commands
|
|
||||||
nnoremap <leader>u :CtrlPCurFile<CR>
|
|
||||||
nnoremap <leader>m :CtrlPMRUFiles<CR>
|
|
||||||
|
|
||||||
" fugitive
|
" fugitive
|
||||||
" Add some shortcuts for git commands
|
" Add some shortcuts for git commands
|
||||||
nnoremap <leader>gs :Gstatus<CR>
|
nnoremap <leader>gs :Gstatus<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user