on Fri, 26 Jul 2002 12:06:41PM -0500, Lance Simmons insinuated: > If you put "map fd ggV/^-- <CR><up>gq" in your .vimrc, then "fd" > will wrap everything, stopping at your signature line and placing > the cursor there, where you can start your reply. also sprach nori heikkinen <nori@sccs.swarthmore.edu> [2002.07.30.1539 +0200]: > hm, gq} does exactly that in three keystrokes, and that without the > extra line in the .vimrc. gq} reformats to end of the paragraph. gqip reformats the entire paragraph. lance's macro first seeks line 0, then reformats everything until the signature separator from there. my macro sought the first empty line (after the RFC822 headers), then proceeded like lance's. granted, quoted text is a paragraph to vim, so pressing gq} in the first line of quoted text does the same as lance's macro, but i am pedantic, so you're wrong, ms. nori... -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck "oh what a tangled web we weave, when first we practice to deceive." -- shakespeare
Attachment:
pgpW2LnvL9Wtv.pgp
Description: PGP signature