From 5830d1cadf5086150c7163edfec33fd11be5a480 Mon Sep 17 00:00:00 2001 From: Jim Richter Date: Sun, 4 Jul 2021 16:02:22 +0200 Subject: [PATCH] fix: return to previous buffer when opening nerdtree --- configs/init.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/init.vim b/configs/init.vim index d83f3bd..2270023 100644 --- a/configs/init.vim +++ b/configs/init.vim @@ -71,6 +71,7 @@ set updatetime=300 nmap :NERDTreeToggle let NERDTreeShowHidden=1 au VimEnter * NERDTree +au VimEnter * if &filetype !=# 'gitcommit' | NERDTree | wincmd p | endif nmap h nmap j nmap k