From 4f2dc2a1692568deb65b677188d38d666cbd469d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 11 May 2019 00:02:59 +0200 Subject: diff-corrections: Move corrections to `autoload` Makes the code a little nicer and more extensible without the line continuations. Only change the highlight colour for the 'twilight256' colour scheme. --- bundle/diff-corrections/autoload/diff_corrections.vim | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bundle/diff-corrections/autoload/diff_corrections.vim (limited to 'bundle/diff-corrections/autoload') diff --git a/bundle/diff-corrections/autoload/diff_corrections.vim b/bundle/diff-corrections/autoload/diff_corrections.vim new file mode 100644 index 0000000..c9e77ff --- /dev/null +++ b/bundle/diff-corrections/autoload/diff_corrections.vim @@ -0,0 +1,9 @@ +function! diff_corrections#Run() + if &diff + if exists('g:colors_name') && g:colors_name ==# 'twilight256' + highlight Comment ctermfg=7 + endif + + set nocursorline + endif +endfunction -- cgit v1.2.3