home/src/rc/diff.kak

12 lines
413 B
Plaintext
Raw Normal View History

2012-07-25 14:14:25 +02:00
hook global BufCreate .*\.(diff|patch) \
2012-06-27 14:29:12 +02:00
setb filetype diff
hook global WinSetOption filetype=diff \
addhl group diff-highlight; \
addhl -group diff-highlight regex "^\+[^\n]*\n" green default; \
addhl -group diff-highlight regex "^-[^\n]*\n" red default; \
addhl -group diff-highlight regex "^@@[^\n]*@@" cyan default;
hook global WinSetOption filetype=(?!diff).* \
rmhl diff-highlight