From e9f07e67dca8806ad99554cf3936d2d7e4139c6e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 19 Apr 2023 08:36:40 +0000 Subject: [PATCH] home: vim: add diff line matching This should bring more readable diffs. See [1]. [1]: https://github.com/neovim/neovim/pull/14537 --- home/vim/init.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home/vim/init.vim b/home/vim/init.vim index 2ebc6d6..4d8b85d 100644 --- a/home/vim/init.vim +++ b/home/vim/init.vim @@ -68,6 +68,8 @@ set listchars=tab:>─,trail:·,nbsp:¤ " Use patience diff set diffopt+=algorithm:patience +" Align similar lines in each hunk +set diffopt+=linematch:50 " Don't redraw when executing macros set lazyredraw