Added ,F - find tag in vertical split window
This commit is contained in:
parent
5716eaa239
commit
1217f5277a
@ -290,6 +290,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
|
|||||||
**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
|
||||||
* 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
|
||||||
* ,K - GitGrep the current word up to next exclamation point (useful for ruby foo! methods)
|
* ,K - GitGrep the current word up to next exclamation point (useful for ruby foo! methods)
|
||||||
* Cmd-* - highlight all occurrences of current word (similar to regular * except doesn't move)
|
* Cmd-* - highlight all occurrences of current word (similar to regular * except doesn't move)
|
||||||
|
@ -94,6 +94,10 @@ nnoremap ,gcp :GitGrepCurrentPartial<CR>
|
|||||||
" 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-]>
|
||||||
|
|
||||||
|
" 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>
|
||||||
|
|
||||||
|
|
||||||
"toggle between last two buffers with Z (normally ctrl-shift-6)
|
"toggle between last two buffers with Z (normally ctrl-shift-6)
|
||||||
nnoremap <silent> ,z <C-^>
|
nnoremap <silent> ,z <C-^>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user