summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2020-02-17 20:51:23 +0100
committerReiner Herrmann <reiner@reiner-h.de>2020-02-17 20:51:23 +0100
commit41138afae2b70c21ba48d4de38404bf804bcb0a7 (patch)
treedd00b589908d4fc1d9ebcf1856a9e05f8ef0fbd4 /vimrc
parentda32eb94a6adc6bd42a756881aff33a74eed02c6 (diff)
select histogram diff in vim and git
Scientifically determined to be the best one for code: https://link.springer.com/article/10.1007/s10664-019-09772-z
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 7f36d3a..d503268 100644
--- a/vimrc
+++ b/vimrc
@@ -29,6 +29,7 @@ set tags^=./.git/tags; " upwards search for tags file in .git/
set wildmenu " enable wildmenu for command completion
set wildmode=list:longest,full " use a bash-like command completion mode
set backspace=indent,eol,start " enable backspacing
+set diffopt^=indent-heuristic,algorithm:histogram " better diffing
set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case " use ripgrep for grepping
let mapleader="," " more convenient leader
syntax on " enable syntax highlighting