JaredVogt / vimrc

CONFIG: my vimrc
0 stars 0 forks source link

wrap all au into augroup #32

Open JaredVogt opened 8 years ago

JaredVogt commented 8 years ago

per http://learnvimscriptthehardway.stevelosh.com/chapters/14.html

example...

:augroup testgroup
:    autocmd!
:    autocmd BufWrite * :echom "Cats"
:augroup END

the key is that each augroup has a first line of : autocmd! which clears out the group so you don't end up with "duplicates."