Merge pull request #428 from lfilho/patch-1
Make gf create the file if not existent
This commit is contained in:
commit
cffb8b175d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user