X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vim%2Fafter%2Fftplugin%2Fmail.vim;h=ee558b23117993c328e42d8e8bd47da76eedec9b;hb=c729f09c20a403f95d1196e21a97c90ca669ffba;hp=2dc85d828a4ef1fb9fbddb22fd89b61b53dd3341;hpb=84d2b4ceadfab03e510a6a615db1427000e2e636;p=config%2Fdotfiles.git diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim index 2dc85d8..ee558b2 100644 --- a/vim/after/ftplugin/mail.vim +++ b/vim/after/ftplugin/mail.vim @@ -1,18 +1,34 @@ " Vim filetype plugin file +" " Language: Mail " Maintainer: Simon Ruderich +" 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. 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 -silent! %s/^\(>\+\) >/\1>/g +silent! %s/^>\+\zs >/>/g +silent! %s/^>\+\zs >/>/g +silent! %s/^>\+\zs >/>/g " Move directly after the headers. normal gg