diff --git a/README.md b/README.md index 0439e2ba..07a25639 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/vim/plugin/settings/smart_jump_to_tag.vim b/vim/plugin/settings/smart_jump_to_tag.vim index 59a4a744..24cadb6a 100644 --- a/vim/plugin/settings/smart_jump_to_tag.vim +++ b/vim/plugin/settings/smart_jump_to_tag.vim @@ -36,7 +36,8 @@ endfunction " this uses ctags. the standard way to get this is Ctrl-] nnoremap ,f -nnoremap :call JumpToRubyMethod() +nnoremap ,,f :call JumpToRubyMethod() + " use ,F to jump to tag in a vertical split nnoremap ,F :let word=expand(""):vsp:wincmd w:exec("tag ". word)