Disable or change an augroup for a particular filetype?
What would be the best way to 1) disable or 2) change an augroup for some filetype? For now, in my after/ftplugin/some_filetype.vim, I have something like this (not at the same time, of course):
" if I want to disable it
autocmd BufEnter,BufWinEnter,WinEnter,TabEnter <buffer> autocmd! MyAugroup
" if I want to change it
autocmd SomeEvent <buffer> MY_NEW_COMMAND
autocmd! BufEnter,BufWinEnter,WinEnter,TabEnter <buffer> call <SID>ChangeMyAugroup()
It works OK, and I seem to have no problems with it but may be it can be tweaked in some way or enhanced? Any suggestions?
Thank you for your time :)
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.