Ken Guest wrote:
Is it possible to stop vim from telling me that the mode of a file has changed?
For example when I do a chmod +x ?
thanks
k.
To ask only if something more than just time or mode have changed, you
can paste the following (untested, but I believe it should work) into
your vimrc:
:autocmd FileChangedShell *
\ if (v:fcs_reason == "mode") || (v:fcs_reason == "time") |
\ let v_fcs_choice = "" |
\ else |
\ let v:fcs_choice = "ask" |
\ endif
To never ask and always read
:set autoread
There are other possibilities, see
:help autocmd.txt
:help FileChangedShell
:help v:fcs_reason
:help v:fcs_choice
HTH,
Tony.