I have a script that is called when I open a file with
fileA extension in vim:
autocmd BufWritePost *fileA !/usr/bin/named_check_vim %:p
script named_checkvim checks for errors in a file, if errors are found I want to go back to the vim buffer that is currently opened.
How do I do this from the script? I simply used
vi fileA but I will get a file swap error.