<<< Date Index >>>     <<< Thread Index >>>

Re: Remove old signature



> Any pointers on how to do that with vim ?

I don't let my editor (vi, not vim) strip signatures automatically.
Sometimes I want to comment on the signature in my reply.  I have a vi
macro for signature-stripping:

"" From main.d/070.delsig:
"" Remove quoted signature, up to blank line
map ; :/^[      ]*> -- *$/;?^[  >][     >]*$?;.,/^[     ]*$/-1d

All the sequences of whitespace above are <space><tab>, and the ^M is a
control-M, not a caret and an M.  Be sure to fix that if you copy and
paste.

Vim should be able to use this too -- if not, its vi compatibility is
worse than I thought.

-- 
 -D.    dgc@xxxxxxxxxxxx    NSIT    University of Chicago