I have the following command which defines an iabbrev
:
if !snips_installed
augroup VimLogger
autocmd!
autocmd Filetype vim iabbrev <buffer> log hello!!
augroup END
endif
It works when I open the .vimrc
file. However, if I change the output, for example to:
autocmd Filetype vim iabbrev <buffer> log new!
It still produces the old output. I thought the purpose of augroup
is to be able to update (and cancel out old) commands, but it doesn't seem to be working. What am I doing incorrectly here, or what might the issue be here? It seems like not only do I have to refresh the vimrc, I also have to 're-do' the filetype?
:w | so % | set ft=vim
?