fix: return to previous buffer when opening nerdtree

This commit is contained in:
max_richter 2021-07-04 16:02:22 +02:00
parent 771be92741
commit 5830d1cadf

View File

@ -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