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

Re: Automatically truncating signatures



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Apr 07, 2007 at 10:35:41AM +0200, Elimar Riesebieter wrote:
> On Fri, 06 Apr 2007 the mental interface of
> Michael Pobega told:
> 
> >I'm using Vim as my text editor and I've yet to figure out a good way
> >to automatically truncate everything below the signature line (----)
> >when I reply to a message. 
> >
> >I'd like to do this because I'd like to start using a signature in my
> >messages, and having to get rid of all of the signatures and automated
> >mailing list messages on every message manually is a bit irritating.
> 
> Deletes everything from cursor line position till the last --
> (<dash><dash><blank>):
> map ,ds :.;/^-- $/d<CR>O<home>-- <ESC><right>d<End>I<CR><CR><UP><UP>
> 
> Elimar
> 

I don't understand how to use that. I put it in my .vimrc and it's not
working, I tried:

(-- ):<stuff>
- -- :<stuff>
:<stuff>

But none of it works right. Am I putting it in the wrong place?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGF6PN/o7Q/FCvPe0RAueBAJ9fP9JhIjOK/LbtLzC7yF7OT5E86QCbB4CW
p+sAZYaKyeePY2ugeMU6fn0=
=tN1e
-----END PGP SIGNATURE-----