Saturday, August 29, 2009

Re: Replace Just Needed

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Sat, Aug 29, 2009 at 12:32:31PM +0800, bill lam wrote:
>
> On Fri, 28 Aug 2009, Simon Ruderich wrote:
>> There is a patch on the t-prot page to also use it when replying
>> [1]. It's also described on the t-prot page (scroll down a bit)
>> [2]. But it looks like it doesn't work anymore with the newest
>> mutt (or I did something wrong).
>
> I'll use vim macro for that.
>
> --
> regards,

Hi,

I'm doing the same, but t-prot has some nice options. At the
moment I use this in after/ftplugin/mail.vim:

" Use only 65 characters per line as given in rfc1855.
setlocal textwidth=65

" Replace trailing spaces except after mail headers (To:,
" etc.) or a signature delimiter (-- ).
silent! %s/\(^\([a-zA-z-]\+:\|--\)\)\@<!\s\+$//
" Remove spaces between quotes (> > to >>).
silent! %s/^\(>\+\) >/\1>/g
silent! %s/^\(>\+\) >/\1>/g

" Move directly after the headers.
normal gg
normal }

Works for me. If you have any suggestion how to improve this
please tell me ;-)

Simon
- --
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBCAAGBQJKmS1fAAoJEJL+/bfkTDL5eJcQAKiO7uDoKXi50Atc+P2jn1+N
JrLLVu3YdytK7uTRrEPwq1OrCak6+1JtSpPt41XQpc4KaOmqXfsSyND9cHxq1nHw
8ckkHjsuNjEYSV/plOETVnbY2DgE8aoRguINMJWvsw2vvidD+2agqDzzoGu7IcfS
tcc0seuSkhuNZQ1vh5A1/+f13hxoaYVIejHV23LvyFK/lgkPgQ+oQm+Df0dbOx1Q
P1+jrXqkVrPTEwff1iqQBFyy15W+Wdm6fvuptBxaUVgHuiQgY70+MiUBkutdbKle
GcVfKavBGJxUMI/PnxL9BfuQgmDtJCY9WNbdV6CB2Uv7jUmp09qvniYmeXn++Aqn
3sus05iZ9GOlpnneLZsYpQtqGDGj1hSdr0x3k9sN4sauuaeXyQsBAX5ADNnzSoTD
6RNTI0sUIRH39dxMrH6B0Um3Lam7mvROA2l+GlW19zuzr/CNi6dl6ohgeaW4ftWz
luMO3K26lKA9+RibVMCWxEX5aAfOBFRqH8+uTMqP7E+QG7EqL+4U/nhVk00IA4N4
dtgmuY1VoEOXPixnKa3qxFP9tN5bnCo292KgDSHOiJGZQ4WvBS0ufFI2qeuM1vxp
OGbhO/EDKqh2gghZVHt+oRQcnu4qfSmF/1pjHhW9MXK6fqYJbpAf/1gAsvxDGv3+
3Nl8Vj3cvweixOLvoFqQ
=8k5R
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: