Changed jump to ruby method to ,,f so as not to conflict with carriage return

This commit is contained in:
Yan Pritzker
2012-10-08 21:41:24 -07:00
parent 1f0693ce1d
commit 6ed1a6c36f
2 changed files with 3 additions and 2 deletions

View File

@@ -241,7 +241,7 @@ If you omit the key combo, you'll get a list of all the maps. You can do the sam
#### Search/Code Navigation
* `,f` - instantly Find definition of class (must have exuberant ctags installed)
* `ctrl-m` - jump to Method. Same as vim's built in jump to tag, but much more aware of ruby bang_methods! and method.invocations!
* `,,f` - jump to Method. Same as vim's built in jump to tag, but much more aware of ruby bang_methods! and method.invocations!
* `,F` - same as ,f but in a vertical split
* `,gf` or `Ctrl-f` - same as vim normal gf (go to file), but in a vertical split (works with file.rb:123 line numbers also)
* `gF` - standard vim mapping, here for completeness (go to file at line number)

View File

@@ -36,7 +36,8 @@ endfunction
" this uses ctags. the standard way to get this is Ctrl-]
nnoremap <silent> ,f <C-]>
nnoremap <silent><C-m> :call JumpToRubyMethod()<CR>
nnoremap <silent> ,,f :call JumpToRubyMethod()<CR>
" use ,F to jump to tag in a vertical split
nnoremap <silent> ,F :let word=expand("<cword>")<CR>:vsp<CR>:wincmd w<cr>:exec("tag ". word)<cr>