From e4a1cf9aa0d4cefcd8d54bfab724c77f92299e5c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 10 May 2019 23:54:05 +0200 Subject: Add 'diff-corrections' to adjust settings during diff mode * Changes `Comment` colour for better readability on red backgrounds. * Turns of 'cursorline' so that diff background highlighting doesn't get shadowed. --- bundle/diff-corrections/plugin/diff_corrections.vim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bundle/diff-corrections/plugin/diff_corrections.vim (limited to 'bundle/diff-corrections') diff --git a/bundle/diff-corrections/plugin/diff_corrections.vim b/bundle/diff-corrections/plugin/diff_corrections.vim new file mode 100644 index 0000000..c3dd8bc --- /dev/null +++ b/bundle/diff-corrections/plugin/diff_corrections.vim @@ -0,0 +1,8 @@ +augroup diff_corrections + autocmd! + + autocmd BufEnter * if &diff + \| highlight Comment ctermfg=7 + \| set nocursorline + \| endif +augroup END -- cgit v1.2.3