a question about evim

Fred puissante at lrc.puissante.com
Wed Jan 25 11:19:37 EST 2006


On Wednesday 25 January 2006 10:36, Bill Freeman wrote:
> Zhao Peng writes:
>  > I have a simple question about evim (Easy Vim).
>  >
>  > Whenever I use evim to edit a file, say "abc.txt", a same-name file
>  > plus "~" is always created. In this case, it will be "abc.txt~". It's a
>  > bit annoying to me.
>  >
>  > Is there any way to avoid this? (Or it could casue some potential
>  > problems if this behavior of evim is overridden.)
>
> 	I don't use evim, but this sounds like what emacs does.  These are
> "backup" files.  (Actually, they're your original file, renamed.)  If your
> machine (or the editor) crashes, or you suffer significant operator error,
> you can at least get back to the previous version of the file.
...
I use emacs extensively, and get annoyed with the backup files too. So I 
wrote a bash script I run peroidically to copy *all* the backup files in the 
directory tree to /tmp.

And here it is:

#!/bin/bash
for bak in `find | egrep "(#.*#$|~$)"`
  do
  echo "nuking $bak"
  mv $bak /tmp
done



More information about the gnhlug-discuss mailing list