Merge pull request #578 from wincent/eventignore

Suppress autocmds less aggressively
This commit is contained in:
Phil Runninger 2017-04-12 09:50:28 -04:00 committed by GitHub
commit 45f4d61f04

View File

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