Skip to content

Instantly share code, notes, and snippets.

@codelahoma
Created February 8, 2012 00:57
Show Gist options
  • Save codelahoma/1763670 to your computer and use it in GitHub Desktop.
Save codelahoma/1763670 to your computer and use it in GitHub Desktop.
" CtrlP config to replace Gary Bernhardt's Command-T config
" from 'File Navigation with Vim'
" (http://www.destroyallsoftware.com/file-navigation-in-vim.html)
map <leader>f :ClearCtrlPCache<cr>\|:CtrlPCurWD<cr>
map <leader>gf :ClearCtrlPCache<cr>\|:CtrlPCurFile<cr>
map <leader>b :CtrlPBuffer<cr>
" Custom Rails specific CtrlP mappings
map <leader>gv :ClearCtrlPCache<cr>\|:CtrlP app/views<cr>
map <leader>gc :ClearCtrlPCache<cr>\|:CtrlP app/controllers<cr>
map <leader>gm :ClearCtrlPCache<cr>\|:CtrlP app/models<cr>
map <leader>gh :ClearCtrlPCache<cr>\|:CtrlP app/helpers<cr>
map <leader>gl :ClearCtrlPCache<cr>\|:CtrlP lib<cr>
map <leader>gp :ClearCtrlPCache<cr>\|:CtrlP public<cr>
map <leader>gs :ClearCtrlPCache<cr>\|:CtrlP public/stylesheets<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment