Can I disable or suppress Vim W11 Warnings?

macvim, vim

Solution

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.

Problem

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. ```

Original source

Related problems