Added ,gf - go to file in vertical split
This commit is contained in:
parent
a868be3176
commit
7b2be4c97b
@ -275,11 +275,12 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
|
|||||||
|
|
||||||
* `,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` - same as ,f but in a vertical split
|
||||||
|
* `,gf` - same as vim normal gf (go to file), 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)
|
||||||
* `,hl` - toggle search highlight on and off
|
* `,hl` - toggle search highlight on and off
|
||||||
* `,gg` - GitGrep command line with a quote pretyped (close the quote yourself)
|
* `,gg` - GitGrep command line, type between quotes
|
||||||
* `,gd` - GitGrep def (greps for 'def [function name]') when cursor is over the function name
|
* `,gd` - GitGrep def (greps for 'def [function name]') when cursor is over the function name
|
||||||
* `,gcp` - GitGrep Current Partial to find references to the current view partial
|
* `,gcp` - GitGrep Current Partial to find references to the current view partial
|
||||||
* `//` - clear the search
|
* `//` - clear the search
|
||||||
|
@ -94,6 +94,9 @@ nnoremap <silent> ,f <C-]>
|
|||||||
" 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>
|
||||||
|
|
||||||
|
" use ,gf to go to file in a vertical split
|
||||||
|
nnoremap <silent> ,gf :vertical botright wincmd f<CR>
|
||||||
|
|
||||||
|
|
||||||
"Move back and forth through previous and next buffers
|
"Move back and forth through previous and next buffers
|
||||||
"with ,z and ,x
|
"with ,z and ,x
|
||||||
|
Loading…
Reference in New Issue
Block a user