How can vim tell me which buffer is changed on disk among multiple buffers?
related to this thread, @b-layer helped me
my current vimrc code:
set autoread autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' | checktime | endif autocmd FileChangedShellPost * \ echohl WarningMsg | echo "File " . expand('<afile>') . " changed on disk. Buffer reloaded." | echohl None
If i have multiple files let's say 4 tabs open in vim and one file is changed,
it will show
File A.cpp changed on disk. Buffer reloaded.
But i need to add a feature which will work like this
suppose, i have 4 files (opened as tabs in vim)
A.cpp B.cpp C.cpp D.cpp
If two files are changed outside vim, it will show
File A.cpp C.cpp changed on disk. Buffer reloaded.