Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I disable or suppress Vim W11 Warnings?

Tags:

vim

I'm using GVim (ver 7.3.46) - saving a text file to a network folder, I keep getting this W11 error, and as far as I know no other process / application is changing the file, I suspect vim thinks it changed because of lag to saving it to the network drive, and it detects a different timestamp? In any case, I'd 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.
like image 683
Eric Dorsey Avatar asked Jul 11 '13 15:07

Eric Dorsey


1 Answers

When editing this file, set the autoread setting, so Vim will automatically reread it:

 :setl autoread

This can possibly be set via a modeline.

Another alternative is to set the buftype option for this file. But I am not sure, what other consequences this have, so I suspect this might have some side effects.

See

:h 'buftype'

For the possible values and their implications of the buftype option.

like image 133
Christian Brabandt Avatar answered Oct 28 '22 12:10

Christian Brabandt