diff options
author | Teddy Wing | 2019-05-10 23:54:05 +0200 |
---|---|---|
committer | Teddy Wing | 2019-05-10 23:57:25 +0200 |
commit | e4a1cf9aa0d4cefcd8d54bfab724c77f92299e5c (patch) | |
tree | 91d4acd030a07d04223f61f20570b02c7f06fa3e /bundle | |
parent | 48be5ac029498e85ec60e32688779ed4d4971e47 (diff) | |
download | dotvim-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')
-rw-r--r-- | bundle/diff-corrections/plugin/diff_corrections.vim | 8 |
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 |