summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2009-02-06 16:52:29 +0100
committerHugues Hiegel <hugues@hiegel.fr>2009-02-06 16:52:29 +0100
commit151cd13afe04bf4bb0715b253232927fa9ca286d (patch)
tree436a2b3f2e47d44c68cf561cb90be3989f14e1f9
parentbd91be631f1665bf2d7fd9f27dac5e4e4087de25 (diff)
[VIM] Reformats mails using 'par'
-rw-r--r--vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index db0236b..b445014 100644
--- a/vimrc
+++ b/vimrc
@@ -158,11 +158,13 @@ endfunction
" <ESC>n goto next empty reply-to paragraph
" <ESC>m opens an empty reply-paragraph at this line
" <ESC>d deletes everything until but the signature
+" <ESC>w reformats entire mail but the signature
" <ESC>D deletes everything until but the next reply-to ยง
autocmd BufRead /tmp/mutt-*[0-9] map <ESC>n /^> $<CR>
autocmd BufRead /tmp/mutt-*[0-9] map <ESC>m 'ddO<CR><CR><ESC>-I
autocmd BufRead /tmp/mutt-*[0-9] map <ESC>D ^d?^\([^>]\\|$\)?+<CR>O<ESC>
autocmd BufRead /tmp/mutt-*[0-9] map <ESC>d ^d/^-- $<CR>O<ESC>
+autocmd BufRead /tmp/mutt-*[0-9] map <ESC>w ggv/^-- $<CR><UP>:!par rTbgqRe 'B=.,?_A_a' 'Q=_s>\|'<CR>
autocmd BufRead /tmp/mutt-*[0-9] set textwidth=74
autocmd BufRead /tmp/mutt-*[0-9] execute Erase_Sig_but_Your()