X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vim%2Fafter%2Fftplugin%2Fmail.vim;h=b0fee0cb0991f48e2c08ac1e6847b1bf1c736de6;hb=a0b93d46b90d0cf54c1a8c667f8b84f75506c919;hp=3005e25332f509ece6bf16c556c21ad534661f0a;hpb=f3480ca467579bf55d7275969576eadeba5d9cec;p=config%2Fdotfiles.git diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 3005e25..b0fee0c 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -1,7 +1,23 @@ " Vim filetype plugin file +" " Language: Mail " Maintainer: Simon Ruderich -" Last Change: 2008-12-07 +" License: GPL v3+ + +" Copyright (C) 2009-2012 Simon Ruderich +" +" This file is free software: you can redistribute it and/or modify +" it under the terms of the GNU General Public License as published by +" the Free Software Foundation, either version 3 of the License, or +" (at your option) any later version. +" +" This file is distributed in the hope that it will be useful, +" but WITHOUT ANY WARRANTY; without even the implied warranty of +" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +" GNU General Public License for more details. +" +" You should have received a copy of the GNU General Public License +" along with this file. If not, see . " Use only 65 characters per line as given in rfc1855. @@ -13,7 +29,15 @@ silent! %s/\(^\([a-zA-z-]\+:\|--\)\)\@ > to >>). silent! %s/^\(>\+\) >/\1>/g silent! %s/^\(>\+\) >/\1>/g +silent! %s/^\(>\+\) >/\1>/g " Move directly after the headers. normal gg normal } + +" Fold quotes. Thanks to Teemu Likonen +" (http://permalink.gmane.org/gmane.editors.vim.devel/20890, +" <20080809190407.GA7584@mithlond.arda.local>) and danielsh_ in #mutt on +" Freenode (2010-07-10 13:01) for letting me know. +setlocal foldmethod=expr foldminlines=2 +setlocal foldexpr=strlen(substitute(substitute(getline(v:lnum),'\\s','','g'),'[^>].*','',''))