How to disable augroup in vim?

Posted by Andrew Vit on Super User See other posts from Super User or by Andrew Vit
Published on 2012-06-20T02:51:31Z Indexed on 2012/06/20 3:18 UTC
Read the original article Hit count: 448

Filed under:
|
|

I understand that in my vimrc I can add autocmd, and I can group them into augroup. Once they are grouped, what can I do with the group? Specifically, is there a way to disable the whole group at once?

Looking at the help, I only see two options:

  • augroup! will delete the whole group: I don't think this is right since I will want to re-enable it again.
  • Searching for "aucmd" and "disable" brings up eventignore, but this looks like it's for specific events like CursorMoved, BufWinLeave, etc. and not the command or the group itself.

How is this done?

© Super User or respective owner

Related posts about vim

Related posts about configuration