Skip to content

Commit a8ac81b

Browse files
mdedonno1337lpil
authored andcommitted
Add the 'autocmd!' command to clean the autocmd in the group
This will prevent to add the already loaded autocmd when reloading the vim configuration. The 'autocmd!' command remove the content of the augroup at load.
1 parent 722754c commit a8ac81b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

snippets/vim.snippets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ snippet ife if ... else statement
4343
endif
4444
snippet au augroup ... autocmd block
4545
augroup ${1:AU_NAME}
46+
autocmd!
4647
autocmd ${2:BufRead,BufNewFile} ${3:*.ext,*.ext3|<buffer[=N]>} ${0}
4748
augroup END
4849
snippet auv augroupvisual ... autocmd block with visual placeholder

0 commit comments

Comments
 (0)