Closed thevan96 closed 2 years ago
can use a ShellCmdPost
handler, e.g.
autocmd ShellCmdPost * exe 'bdelete' expand('<afile>')
but that won't cover all cases. Vim doesn't have inotify events afaik. You could use something like https://github.com/clibs/entr
How to auto-delete buffer if the file is removed from the disk?