From 7b2be4c97b1735f9a34ef1bc5cb2da82e3f80ad8 Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Wed, 7 Mar 2012 11:52:26 -0800 Subject: [PATCH] Added ,gf - go to file in vertical split --- README.md | 3 ++- vim/plugin/settings/yadr-keymap.vim | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 33d09ee..5e19c3f 100644 --- a/README.md +++ b/README.md @@ -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` - 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 up to next exclamation point (useful for ruby foo! methods) * `Cmd-*` - highlight all occurrences of current word (similar to regular `*` except doesn't move) * `,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 * `,gcp` - GitGrep Current Partial to find references to the current view partial * `//` - clear the search diff --git a/vim/plugin/settings/yadr-keymap.vim b/vim/plugin/settings/yadr-keymap.vim index de093b1..20a493b 100644 --- a/vim/plugin/settings/yadr-keymap.vim +++ b/vim/plugin/settings/yadr-keymap.vim @@ -94,6 +94,9 @@ nnoremap ,f " use ,F to jump to tag in a vertical split nnoremap ,F :let word=expand(""):vsp:wincmd w:exec("tag ". word) +" use ,gf to go to file in a vertical split +nnoremap ,gf :vertical botright wincmd f + "Move back and forth through previous and next buffers "with ,z and ,x