Charles Campbell wrote: > Tony Mechelynck wrote: > > 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). > > > Netrw saves selected user options, sets them to "safe" values for netrw > to build its buffer, and then restores the user's options. That way when > netrw is used to open a new file, the user's options are in effect.
How about setting 'buftype' to "nowrite" ? -- LETTERS TO THE EDITOR (The Times of London) Dear Sir, I am firmly opposed to the spread of microchips either to the home or to the office. We have more than enough of them foisted upon us in public places. They are a disgusting Americanism, and can only result in the farmers being forced to grow smaller potatoes, which in turn will cause massive unemployment in the already severely depressed agricultural industry. Yours faithfully, Capt. Quinton D'Arcy, J. P. Sevenoaks /// 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]. For more options, visit https://groups.google.com/d/optout.
