Scott Court wrote: > Those are very valid points, and I agree that the way Neovim handles > .swp files is better. I've already explained on here and on Openwall > numerous reasons why I believe that is the best solution and made the > case that .swp files should be stored in ~/.vim/swap by default. However > Bram has veto power and shot that idea down. > > So instead I'm trying to find the next best way to address this. > /var/lib being writable only by root and therefore requiring cooperation > from packagers did not occur to me, but that's definitely a problem. > Maybe it would be doable as a major change in the next major release of > Vim, but you're right; that definitely won't work as a security patch. > So much for that idea. > > I maintain a Linux Distribution (Cucumber Linux) and have already > adopted the Neovim style ~/.vim/swap approach on there. Maybe we'll just > have to hope that other distributions independently start doing > something similar, as Bram seems pretty convinced this problem is > completely a user error and has nothing to do with the way Vim works; > he's also pretty set on not changing the default .swp location.
There are a few situations you need to consider: - Removable media, editing a file on a USB stick. - Remote file systems (where the mount point may change over time). - Multiple users editing a shared file. - Renaming directories. There are likely many more -- FATAL ERROR! SYSTEM HALTED! - Press any key to continue doing nothing. /// Bram Moolenaar -- b...@moolenaar.net -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.