Make gf create the file if not existent

This commit is contained in:
Luiz Gonzaga dos Santos Filho 2013-12-21 00:13:26 -02:00
parent 59bac45dc9
commit e3181339d2

View File

@ -143,6 +143,11 @@ 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