Changed jump to ruby method to ,,f so as not to conflict with carriage return
This commit is contained in:
@@ -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
|
#### Search/Code Navigation
|
||||||
|
|
||||||
* `,f` - instantly Find definition of class (must have exuberant ctags installed)
|
* `,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
|
* `,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` 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)
|
* `gF` - standard vim mapping, here for completeness (go to file at line number)
|
||||||
|
|||||||
@@ -36,7 +36,8 @@ endfunction
|
|||||||
" this uses ctags. the standard way to get this is Ctrl-]
|
" this uses ctags. the standard way to get this is Ctrl-]
|
||||||
nnoremap <silent> ,f <C-]>
|
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
|
" 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>
|
nnoremap <silent> ,F :let word=expand("<cword>")<CR>:vsp<CR>:wincmd w<cr>:exec("tag ". word)<cr>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user