diff options
author | Martin Kolman <mkolman@redhat.com> | 2013-07-16 16:35:12 +0200 |
---|---|---|
committer | Martin Kolman <mkolman@redhat.com> | 2013-07-16 16:35:12 +0200 |
commit | 856f581114f676e1093e64c145af0e128dc8c9e3 (patch) | |
tree | 63b798c5358f4198728e0c6cb042550f740edc9a /ftplugin/diff_ShowTrailingWhitespace.vim | |
download | vim-master.tar.gz vim-master.tar.xz vim-master.zip |
Diffstat (limited to 'ftplugin/diff_ShowTrailingWhitespace.vim')
-rw-r--r-- | ftplugin/diff_ShowTrailingWhitespace.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ftplugin/diff_ShowTrailingWhitespace.vim b/ftplugin/diff_ShowTrailingWhitespace.vim new file mode 100644 index 0000000..1d5ea79 --- /dev/null +++ b/ftplugin/diff_ShowTrailingWhitespace.vim @@ -0,0 +1,17 @@ +" diff_ShowTrailingWhitespace.vim: Whitespace exceptions for the "diff" 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.001 02-Mar-2012 file creation + +" A single space at the beginning of a line can represent an empty context line. +call ShowTrailingWhitespace#SetLocalExtraPattern( '^\%( \@!\s\)$\|\%>1v') + +" vim: set ts=8 sts=4 sw=4 noexpandtab ff=unix fdm=syntax : |