aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/diff-corrections/plugin/diff_corrections.vim
diff options
context:
space:
mode:
authorTeddy Wing2019-05-10 23:54:05 +0200
committerTeddy Wing2019-05-10 23:57:25 +0200
commite4a1cf9aa0d4cefcd8d54bfab724c77f92299e5c (patch)
tree91d4acd030a07d04223f61f20570b02c7f06fa3e /bundle/diff-corrections/plugin/diff_corrections.vim
parent48be5ac029498e85ec60e32688779ed4d4971e47 (diff)
downloaddotvim-e4a1cf9aa0d4cefcd8d54bfab724c77f92299e5c.tar.bz2
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.
Diffstat (limited to 'bundle/diff-corrections/plugin/diff_corrections.vim')
-rw-r--r--bundle/diff-corrections/plugin/diff_corrections.vim8
1 files changed, 8 insertions, 0 deletions
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