Answer by Martin Tournoij for Why should I use augroup?
Aside from the other answers, I find that the most immediate practical benefit is that it makes it easy to reload vimscript files.For example stick this in your vimrc:autocmd BufCreate * echom "New...
View ArticleAnswer by Karl Yngve Lervåg for Why should I use augroup?
The main reason to use augroups is to allow greater control over ranges of autocommands, e.g. to delete a bunch of autocommands in one go. A common pattern is to use the au! as the first part of a...
View ArticleAnswer by romainl for Why should I use augroup?
Autocommand groups give you the opportunity to organize your autocommands, which is a quite useful feature in and of itself.Say you are writing a plugin. Grouping your plugin's autocommands under your...
View ArticleWhy should I use augroup?
I understand how auto commands work, and how to use them, but I'm somewhat unsure of what augroup is for. I read in :help augroup *:aug* *:augroup*:aug[roup] {name} Define the autocmd group name for...
View Article
More Pages to Explore .....