Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is ignoring autocommands necessary? #640

Closed
lifecrisis opened this issue Nov 25, 2016 · 0 comments
Closed

Why is ignoring autocommands necessary? #640

lifecrisis opened this issue Nov 25, 2016 · 0 comments

Comments

@lifecrisis
Copy link
Contributor

lifecrisis commented Nov 25, 2016

Why does every NERDTree command ignore autocmd events? I had a nice idea to enhance my NERDTree, but this gets in the way. I suppose there is a good reason for it, but I'm still curious.

" FUNCTION: nerdtree#exec(cmd) {{{2
" same as :exec cmd  but eventignore=all is set for the duration
function! nerdtree#exec(cmd)
    let old_ei = &ei
    set ei=all
    exec a:cmd
    let &ei = old_ei
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant