Browse files

Added lots of mappings for file navigation

  • Loading branch information...
1 parent 6ce1e03 commit d8e3b3183c18c1f0e78dcaa82ac00cc90f341f55 @arthurgeek committed Oct 12, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 vimrc
@@ -116,6 +116,23 @@ nmap <silent> <leader>/ :nohlsearch<CR>
" navigate through buffers
nmap <silent> <leader>be :CommandTBuffer<CR>
+" run CommandTFlush before opening CommandT
+map <leader>t :CommandTFlush<cr>\|:CommandT<cr>
+"Command-T mappings for rails
+map <leader>gv :CommandTFlush<cr>\|:CommandT app/views<cr>
+map <leader>gc :CommandTFlush<cr>\|:CommandT app/controllers<cr>
+map <leader>gm :CommandTFlush<cr>\|:CommandT app/models<cr>
+map <leader>gh :CommandTFlush<cr>\|:CommandT app/helpers<cr>
+map <leader>gl :CommandTFlush<cr>\|:CommandT lib<cr>
+map <leader>gp :CommandTFlush<cr>\|:CommandT public<cr>
+" open rails routes file
+map <leader>gr :topleft :split config/routes.rb<cr>
+" open ruby Gemfile
+map <leader>gg :topleft 100 :split Gemfile<cr>
" keep window on buffer delete
nmap <silent> <leader>bd <Plug>Kwbd

0 comments on commit d8e3b31

Please sign in to comment.