Is there a way to get MacVim to stop complaining about /dev/null "changing"? #1406
Replies: 2 comments 4 replies
-
|
Hmm, deviations from vanilla Vim does make it sound like a bug, but can you share the actual diff tool you are using and how you are invoking it? Is it invoked from Git (using To be clearer, it would be nice if there are clear repro steps that others can follow along. |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for my late reply. I was never able to get this to reproduce on any version of vim but MacVim. However, I eventually found that adding this to my autocmd BufEnter /dev/null set buftype=nofile |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I use a multi-diff tool that uses vim's diff mode, but with one tab for file. When a file has been added or removed, it uses
/dev/nullfor the "missing" side. (So an added file has/dev/nullon the left, while a deleted file has/dev/nullon the right.)This works fine with gvim on Linux, and it works fine with terminal-mode vim on Linux or macOS. However, MacVim keeps complaining that "File '/dev/null' has changed since editing started".
Is this a bug, or a configuration issue, or what? Is there any way I can get it to stop complaining about
/dev/nullchanging without disabling change detection for other files?Beta Was this translation helpful? Give feedback.
All reactions