-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Apr 07, 2007 at 01:39:03PM -0700, Gary Johnson wrote: > On 2007-04-07, Michael Pobega <[EMAIL PROTECTED]> wrote: > > 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? > > All you need is <stuff>. His "(<dash><dash><blank>):" was a > parenthetical clarification of his preceding word, "-- ", so that > you knew that a proper signature delimiter is just that: two dashes > followed by a single space. > > To execute his macro after defining it in your .vimrc, just type > > ,ds > > HTH, > Gary >
Thanks, I got it working! - -- <o) Debian GNU/Linux - Free as in Freedom /\\ http://digital-haze.net/~pobega/ _\_V Window Maker user, Debian enthusiast -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGGDkP/o7Q/FCvPe0RAvtGAJ90tHCnwBSQBYu0+dONs13wqL4qbACdE2GW Ve0h8Bblc9yDriNSUYyDFX4= =JfX7 -----END PGP SIGNATURE-----
