I have an autocmd set up like this:
au BufWritePost *.sh,*.zsh,.zshrc silent exec "!ctags --language-force=sh %"
When I run
:!!<cr> after saving a file, the command
!ctags --language-force=sh % is being run.
This does not happen on vim 8.1.
How do I prevent neovim from doing that ?
First - My mistake, this happens also in vim 8.1 so it's not neovim specific.
Second - I wish to clarify my workflow:
- Edit a script
- Save it
- Run it with
- Edit again.
- Run it again with
When I have the above autocmd in place,
#5 breaks and the autocmd command replaces the last
This is what I wish to fix.