diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2020-02-17 20:51:23 +0100 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2020-02-17 20:51:23 +0100 |
| commit | 41138afae2b70c21ba48d4de38404bf804bcb0a7 (patch) | |
| tree | dd00b589908d4fc1d9ebcf1856a9e05f8ef0fbd4 | |
| parent | da32eb94a6adc6bd42a756881aff33a74eed02c6 (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
| -rw-r--r-- | git/gitconfig | 1 | ||||
| -rw-r--r-- | vimrc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/git/gitconfig b/git/gitconfig index c16794b..01b5277 100644 --- a/git/gitconfig +++ b/git/gitconfig @@ -9,6 +9,7 @@ [diff] renames = copy + algorithm = histogram [advice] statusHints = false @@ -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 |
