Can I disable or suppress Vim W11 warnings?

I use GVim (ver 7.3.46) - saving a text file to a network folder, I continue to receive this W11 error, and as far as I know, no other process / application changes the file, I suspect vim thinks it has changed from due to the delay in saving it to a network drive, and it detects a different timestamp? In any case, I would like to suppress this error (and only this error) - is this possible?

W11: Warning: File "foo.txt" has changed since editing started See ":help W11" for more info. 
+4
source share
2 answers

When editing this file, set the autoread parameter, so Vim will automatically re-read it:

  :setl autoread 

This can be set using the model.

Another alternative is to set the buftype option for this file. But I'm not sure what other implications this has, so I suspect it may have some side effects.

Cm

 :h 'buftype' 

For possible values ​​and their consequences for the buftype option.

+8
source

Between the Christian proposal

 :set autoread 

is added to my .gvimrc, and also saves the backup and swap file local

 :set backupdir=~/backup :set directory=~/backup 

seems to have solved my problem.

+4
source

Source: https://habr.com/ru/post/1490938/


All Articles