4 " Maintainer: Simon Ruderich <simon@ruderich.org>
7 " Copyright (C) 2012 Simon Ruderich
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.
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.
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/>.
23 " Color added/removed lines in the diff header the same color as added/removed
25 syntax match diffAdded /^+++ .*$/
26 syntax match diffRemoved /^--- .*$/
27 " Dedicated group for hunks.
28 syntax match diffHunk /^@.*$/ contains=diffSubname
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