On Wednesday, May 1, 2013 12:49:06 PM UTC-5, BPJ wrote:
> Is there any easy/automatized way to remove junk (as in not 
> 
> associated with any file currently open in (g)vim) .swp files
> 
> in the current directory and its subdirectories?
> 
> A plugin perhaps?
> 

Such .swp files should never exist if you always exit Vim normally.

Only when Vim crashes or gets terminated abnormally will you have such files 
hanging around.

Having them stick around is how recovery works.

One of the "swap exists" choices that will appear the next time you edit that 
file, is to delete the swap file. If Vim is not editing that file, under what 
circumstances should Vim delete them? You risk losing the ability to recover 
files if Vim scans the current directory for any swap files on startup or 
something.

On Unix-like systems, swap files should be hidden by default, so you won't see 
them cluttering up anything unless you deliberately show swap files.

On Windows systems, check out my autohide plugin to accomplish the same:

  http://www.vim.org/scripts/script.php?script_id=4505

-- 
-- 
You received this message from the "vim_use" 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_use" 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/groups/opt_out.


Reply via email to