Bug#475266: vim: folding support for mbox format would be nice

Kevin B. McCarty kmccarty at debian.org
Wed Apr 9 20:24:58 UTC 2008


Package: vim
Version: 1:7.1.291-1
Severity: wishlist
Tags: patch

Hi,

I've been using vim to read debian-private archives on master.  I like
its syntax highlighting but have continually been annoyed that (a) I
have to page-down through obvious spam, and (b) I have to view all of
the headers to each mail message, most of which are completely
uninteresting.

I can't believe this doesn't exist already, but I can't find any plugin
to implement folding for mbox format files.  So I wrote one, see
attached "fold-mail.vim".  This folds mbox format files at two levels:
1) individual messages, and 2) the headers for each message.  Author and
subject of the message are displayed in the folding text at both levels.

You may want to integrate into ftplugin/mail.vim.  I wrote this as a
quick hack in a couple hours, based only on ftplugin/debchangelog.vim
and the online Vim documentation, so you may also want to do a sanity
check on it first :-)

best regards,

-- 
Kevin B. McCarty <kmccarty at gmail.com>
WWW: http://www.starplot.org/
WWW: http://people.debian.org/~kmccarty/
GPG: public key ID 4F83C751
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fold-mail.vim
Url: http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20080409/89ccda43/attachment.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20080409/89ccda43/attachment.pgp 


More information about the pkg-vim-maintainers mailing list