How to prevent vim asking to reload /dev/fd?

20 views
Skip to first unread message

Peng Yu

unread,
Jan 23, 2023, 11:52:05 AM1/23/23
to vim_use
Hi,

After I run the following command (in MacVim),

vimdiff <(seq 3) <(seq 4)

then switch to another window and switch it back, vim will ask me something like this.

W11: Warning: File "/dev/fd/63" has changed since editing started
See ":help W11" for more info.
[O]K, (L)oad File, Load File (a)nd Options:

My ~/.vimrc has this line.

autocmd BufRead /dev/fd/* setlocal noautoread

If I remove it, vimdiff will automatically update the screen corresponding to /dev/fd/*, so the screen then will contain empty content.

How to completely disable vim from reload /dev/fd/* (not even asking anything)?
Reply all
Reply to author
Forward
0 new messages