From e3181339d2837a7aee70f6fab6aef7d072abfb77 Mon Sep 17 00:00:00 2001 From: Luiz Gonzaga dos Santos Filho Date: Sat, 21 Dec 2013 00:13:26 -0200 Subject: [PATCH 1/2] Make gf create the file if not existent --- vim/settings/yadr-keymap.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vim/settings/yadr-keymap.vim b/vim/settings/yadr-keymap.vim index b4d0df1..7bd0bdb 100644 --- a/vim/settings/yadr-keymap.vim +++ b/vim/settings/yadr-keymap.vim @@ -143,6 +143,11 @@ nnoremap l nnoremap k nnoremap j +" Make gf (go to file) create the file, if not existent +nnoremap gf :e +nnoremap f :sp +e +nnoremap gf :tabe + " Zoom in and out of current window with ,gz map ,gz o From 94f2237d865167286fad863c5bb23bf31973bf4f Mon Sep 17 00:00:00 2001 From: Luiz Gonzaga dos Santos Filho Date: Sat, 21 Dec 2013 00:16:03 -0200 Subject: [PATCH 2/2] Removing outdated comment --- vim/settings/yadr-keymap.vim | 2 -- 1 file changed, 2 deletions(-) diff --git a/vim/settings/yadr-keymap.vim b/vim/settings/yadr-keymap.vim index 7bd0bdb..6af7bdd 100644 --- a/vim/settings/yadr-keymap.vim +++ b/vim/settings/yadr-keymap.vim @@ -136,8 +136,6 @@ nnoremap ,x :bn " Window/Tab/Split Manipulation " ============================== " Move between split windows by using the four directions H, L, I, N -" (note that I use I and N instead of J and K because J already does -" line joins and K is mapped to GitGrep the current word nnoremap h nnoremap l nnoremap k