Skip to content

Instantly share code, notes, and snippets.

@naxoc
Created May 9, 2012 09:36
Show Gist options
  • Save naxoc/2643340 to your computer and use it in GitHub Desktop.
Save naxoc/2643340 to your computer and use it in GitHub Desktop.
CtrlP config for vim
" I like it better when the filename is used for the search. Toggle this with
" <c-d>
let g:ctrlp_by_filename = 1
" Map the buffer switcher.
map <leader>b :CtrlPBuffer<cr>
" Map the recent files.
map <leader>r :CtrlPMRUFiles<cr>
" Map find-tag-in-buffer.
map <leader>t :CtrlPBufTag<cr>
" Map find-tag-in-all-buffers.
map <leader>ta :CtrlPBufTagAll<cr>
" Enable these extensions. Cycle through them with ctrl-f and ctrl-b when the
" CtrlP window is open.
let g:ctrlp_extensions = ['tag', 'buffertag']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment