aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-10-23 20:32:33 +0800
committerjdhao <jdhao@hotmail.com>2021-10-23 20:32:33 +0800
commitf1ab285f11736d8e00a3ecbe7b1837abb2df0c1b (patch)
tree57f78cea849fd03566f4e7b776e5c45c1c3c5a1e /core
parentf56e2670304c662cd744e573ab50791f038c7328 (diff)
update diffopt
Use historgram diff algorithm, which semes better at showing code changes.
Diffstat (limited to 'core')
-rw-r--r--core/options.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/options.vim b/core/options.vim
index 0b39b70..b62691a 100644
--- a/core/options.vim
+++ b/core/options.vim
@@ -174,4 +174,11 @@ set signcolumn=auto:2
" Remove certain character from file name pattern matching
set isfname-==
set isfname-=,
+
+" diff options
+set diffopt=
+set diffopt+=vertical " show diff in vertical position
+set diffopt+=filler " show filler for deleted lines
+set diffopt+=context:3 " context for diff
+set diffopt+=internal,indent-heuristic,algorithm:histogram
"}