Somewhere between Vim 7.4 and Vim 8 (or at least the Vim 8 that Ubuntu ships), the ability to write to files mounted over Gnome's Virtual File System (GVFS) was lost.
See this Ubuntu bug from a few months ago that nobody noticed: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/1813679 And see also this Ubuntu bug I went to report again today, having forgotten about the first bug because nobody ever responded to it: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/1852927 Since the Ubuntu folks don't seem to know what to do about this, I'm bringing it here; apparently this list serves as the vim bug tracker. Basically, if you mount a directory over SSH on an Ubuntu desktop, by entering "ssh://whatever.hostname" in the Nautilus address bar, and then try to edit files there with either GVim (by opening them from Nautilus) or normal console vim (by doing a "cd /run/user/1000/gvfs/sftp:host=your.server/path/to/directory/" and then "vim file.txt"), vim can't save the file. It just says: "/run/user/1000/gvfs/sftp:host=your.server/path/to/directory/file.txt: E212: Can't open file for writing" Nano doesn't have this problem. Bash can send command output to the file. Vim doesn't even have trouble creating and writing to the swap file. But as soon as I ":w", I get the error, and I can't save my work. This works fine if I build 7.4.1689 from source. Did anyone touch file writing between then and the current version? Is there some kind of extended log I could obtain that might explain exactly where opening the file for writing goes wrong? Does vim want to pass some weird open flags now or something? Please help! -Adam -- -- You received this message from the "vim_dev" 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_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/0e0619936512b901855407b848ecc9c1%40gmail.com.
