fix: return to previous buffer when opening nerdtree
This commit is contained in:
parent
771be92741
commit
5830d1cadf
@ -71,6 +71,7 @@ set updatetime=300
|
|||||||
nmap <F6> :NERDTreeToggle<CR>
|
nmap <F6> :NERDTreeToggle<CR>
|
||||||
let NERDTreeShowHidden=1
|
let NERDTreeShowHidden=1
|
||||||
au VimEnter * NERDTree
|
au VimEnter * NERDTree
|
||||||
|
au VimEnter * if &filetype !=# 'gitcommit' | NERDTree | wincmd p | endif
|
||||||
nmap <C-h> <C-w>h
|
nmap <C-h> <C-w>h
|
||||||
nmap <C-j> <C-w>j
|
nmap <C-j> <C-w>j
|
||||||
nmap <C-k> <C-w>k
|
nmap <C-k> <C-w>k
|
||||||
|
Loading…
Reference in New Issue
Block a user