diff --git a/autoload/nerdtree.vim b/autoload/nerdtree.vim index 3ad2a03..7302dac 100644 --- a/autoload/nerdtree.vim +++ b/autoload/nerdtree.vim @@ -64,7 +64,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