From bb9615c9d08a68b201b5871016efd16fe1c0cd81 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Tue, 6 Aug 2024 00:43:45 +0200 Subject: [PATCH] vim: better diffs --- modules/base/vim.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/base/vim.nix b/modules/base/vim.nix index 6baafdb..d1dd4c0 100644 --- a/modules/base/vim.nix +++ b/modules/base/vim.nix @@ -73,6 +73,10 @@ vim.opt.list = true vim.opt.listchars = { tab="▸ ", trail="·", nbsp="␣" } + -- Better diffs + vim.opt.diffopt:append({"linematch:60", "algorithm:patience"}) + vim.opt.fillchars:append({ diff = " " }) + -- Show search-replace preview live vim.opt.inccommand = "split"