Monday, January 23, 2023

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

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)?

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/d2f8e188-3a64-454c-8f24-a330f63fe664n%40googlegroups.com.

No comments: