I've been noticing some rather confusing behavior in my neovim setup and I'm really not even sure if it's a problem, just a feature that surprised me.
I recently noticed that the classic "This file is already open" warning message hasn't been displaying when I open a file in multiple terminals. This concerned me at first, but I just did some testing and found the following behavior:
- Create a file (
- Open the file in a terminal.
- Open the file in a second terminal (No warning is shown)
- Edit the file in either terminal,
:w, and click over to the other terminal.
Result => In the other terminal the content is automatically updated to reflect the previous changes.
So far as I can tell this isn't behavior that I've explicitly set (though my
init.vim setup has grown rather large and spans multiple files). I grepped for 'swap' and the only hits I got were in Plug.
Is this new behavior in neovim or have I committed the mortal sin of installing a plugin and I don't know what it does?
Update: I found this explanation of how to set this sort of behavior and grepping revealed nothing being set.
Update: Actually this is highly undesirable behavior because unsaved changes don't get updated.