Merge pull request #428 from lfilho/patch-1

Make gf create the file if not existent
This commit is contained in:
Yan Pritzker 2013-12-31 20:12:09 -08:00
commit cffb8b175d

View File

@ -136,13 +136,16 @@ nnoremap <silent> ,x :bn<CR>
" 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 <silent> <C-h> <C-w>h
nnoremap <silent> <C-l> <C-w>l
nnoremap <silent> <C-k> <C-w>k
nnoremap <silent> <C-j> <C-w>j
" Make gf (go to file) create the file, if not existent
nnoremap gf :e<cfile><CR>
nnoremap <C-w>f :sp +e<cfile><CR>
nnoremap <C-w>gf :tabe<cfile><CR>
" Zoom in and out of current window with ,gz
map <silent> ,gz <C-w>o