Added ,,F to do same as ,,f in a vertical split
This commit is contained in:
parent
6ed1a6c36f
commit
90d467ab06
@ -241,8 +241,9 @@ 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)
|
||||||
|
* `,F` - same as `,f` but in a vertical split
|
||||||
* `,,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` - 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)
|
||||||
* `K` - GitGrep the current word under the cursor and show results in quickfix window
|
* `K` - GitGrep the current word under the cursor and show results in quickfix window
|
||||||
|
@ -36,8 +36,11 @@ 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-]>
|
||||||
|
|
||||||
|
" Jump to tag with awareness of ruby bang! methods
|
||||||
nnoremap <silent> ,,f :call JumpToRubyMethod()<CR>
|
nnoremap <silent> ,,f :call JumpToRubyMethod()<CR>
|
||||||
|
|
||||||
|
" Jump to tag with awareness of ruby bang! methods (in vertical split)
|
||||||
|
nnoremap <silent> ,,F :vsp<cr> :wincmd w<cr> :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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user