aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/diff-corrections/autoload/diff_corrections.vim
diff options
context:
space:
mode:
authorTeddy Wing2019-05-11 00:02:59 +0200
committerTeddy Wing2019-05-11 00:02:59 +0200
commit4f2dc2a1692568deb65b677188d38d666cbd469d (patch)
tree3f5b6ec8b311227bb26cc01fac6a6f2cb928f0c0 /bundle/diff-corrections/autoload/diff_corrections.vim
parente4a1cf9aa0d4cefcd8d54bfab724c77f92299e5c (diff)
downloaddotvim-4f2dc2a1692568deb65b677188d38d666cbd469d.tar.bz2
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.
Diffstat (limited to 'bundle/diff-corrections/autoload/diff_corrections.vim')
-rw-r--r--bundle/diff-corrections/autoload/diff_corrections.vim9
1 files changed, 9 insertions, 0 deletions
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