> 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?
Wasn't this already reported, with the observation that it happens when the group-writable bit of the permissions is not set? Might be related to 8.0.1300, which fixes a problem with using looser permissions when writing a file. -- >From "know your smileys": <|-) Chinese <|-( Chinese and doesn't like these kind of jokes /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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/201911202208.xAKM8veg004634%40masaka.moolenaar.net.
