When I'm editing my vimrc, if I gg=G vim autoindents nicely except where augroup is involved
I end up with
augroup movingBackup au! au BufWritePost * call WriteBackupFile(expand("%:t"), expand("%:p:h")) augroup end augroup dotFile au! au BufWritePost *.dot :silent !start cmd /c "dot -T png %:t > %:r.png" augroup end nmap j gj nmap k gk when I really want
augroup movingBackup au! au BufWritePost * call WriteBackupFile(expand("%:t"), expand("%:p:h")) augroup end augroup dotFile au! au BufWritePost *.dot :silent !start cmd /c "dot -T png %:t > %:r.png" augroup end nmap j gj nmap k gk
ENDinstead ofendfor the closing part ofaugroup? It should act the same, but with the lower-case version it would not work whereas with the uppercase it works