diff --git a/autoload/nerdtree.vim b/autoload/nerdtree.vim index e0d86ef..4402b4f 100644 --- a/autoload/nerdtree.vim +++ b/autoload/nerdtree.vim @@ -92,7 +92,7 @@ endfunction " same as :exec cmd but eventignore=all is set for the duration function! nerdtree#exec(cmd) let old_ei = &ei - set ei=all + set ei=BufEnter,BufLeave,VimEnter exec a:cmd let &ei = old_ei endfunction