RFE: I propose a :noswapfile (or something) prefix, working in similar fashion to the :verbose, :vertical, :top, :tab, etc. prefixes in front of another ex-command, and with the meaning: If that _subordinate_ ex-command opens a new buffer, we want 'noswapfile' set on that buffer. (If it doesn't, nothing happens, as with e.g. :vert :top or :tab when the subordinate command opens no new window.) Or maybe :0swapfile and :1swapfile prefixes.

Rationale: Currently, “:setlocal noswapfile” prior to opening a new buffer would close the swapfile on the current buffer, not the new one; while doing it afterwards opens and closes a swapfile for the new buffer, which is less harmful but still not ideal.

In particular, I notice that “directory” windows handled by netrw have swapfiles set on them: IMHO this is wasteful (and after a few crashes you may find yourself with a string of .swp, .swo, .swn, .swm, etc., for something which cannot ever need a recovery).


Best regards,
Tony.
--
But I was there and I saw what you did,
I saw it with my own two eyes.
So you can wipe off that grin;
I know where you've been--
It's all been a pack of lies!

--
--
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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui