summaryrefslogtreecommitdiffstats
path: root/ftplugin/mail_ShowTrailingWhitespace.vim
blob: 57afec3c4ccbd1730f4941a857425e7ae5c3a67c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
" mail_ShowTrailingWhitespace.vim: Whitespace exceptions for the "mail" filetype.
"
" DEPENDENCIES:
"   - ShowTrailingWhitespace.vim autoload script.
"
" Copyright: (C) 2012 Ingo Karkat
"   The VIM LICENSE applies to this script; see ':help copyright'.
"
" Maintainer:	Ingo Karkat <ingo@karkat.de>
"
" REVISION	DATE		REMARKS
"   1.00.002	16-Mar-2012	Refined pattern.
"	001	03-Mar-2012	file creation

" - The email signature separator consists of dash-dash-space.
" - Email headers from Outlook or the Thunderbird "External Editor" add-on
"   may leave whitespace after mail headers. Ignore them unless it's the
"   Subject: header.
" - Quoted empty lines may contain trailing whitespace.
call ShowTrailingWhitespace#SetLocalExtraPattern( '\%(^\%(--\|\%( \?>\)\+\|\%(From\|Sent\|To\|Cc\|Bcc\):.*\)\)\@<!')

" vim: set ts=8 sts=4 sw=4 noexpandtab ff=unix fdm=syntax :