]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - vim/vim/after/syntax/diff.vim
Merge branch 'multimedia' again
[config/dotfiles.git] / vim / vim / after / syntax / diff.vim
1 " Vim syntax file
2 "
3 " Language:     Diff
4 " Maintainer:   Simon Ruderich <simon@ruderich.org>
5 " License:      GPL v3+
6
7 " Copyright (C) 2012  Simon Ruderich
8 "
9 " This file is free software: you can redistribute it and/or modify
10 " it under the terms of the GNU General Public License as published by
11 " the Free Software Foundation, either version 3 of the License, or
12 " (at your option) any later version.
13 "
14 " This file is distributed in the hope that it will be useful,
15 " but WITHOUT ANY WARRANTY; without even the implied warranty of
16 " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 " GNU General Public License for more details.
18 "
19 " You should have received a copy of the GNU General Public License
20 " along with this file.  If not, see <http://www.gnu.org/licenses/>.
21
22
23 " Color added/removed lines in the diff header the same color as added/removed
24 " lines.
25 syntax match diffAdded   /^+++ .*$/
26 syntax match diffRemoved /^--- .*$/
27 " Dedicated group for hunks.
28 syntax match diffHunk    /^@.*$/ contains=diffSubname
29
30 " Special colors for filename and hunk.
31 highlight diffFile    ctermfg=yellow  cterm=bold  guifg=yellow  gui=bold
32 highlight diffHunk    ctermfg=magenta cterm=bold  guifg=magenta gui=bold
33 " Added lines in green, removed lines in red.
34 highlight diffAdded   ctermfg=green   cterm=bold  guifg=green   gui=bold
35 highlight diffRemoved ctermfg=red     cterm=bold  guifg=red     gui=bold