vim Autocommands Refresh vimdiff views if a file is saved in another window


Example

:autocmd BufWritePost * if &diff | diffupdate | endif