Revert "Revert persistent undo and swap file disable stuff"

This reverts commit a28f3baa02.
This commit is contained in:
Ivar Fatland
2025-10-10 11:20:48 +02:00
parent a28f3baa02
commit 7623ee423f
2 changed files with 23 additions and 0 deletions
+10
View File
@@ -74,6 +74,16 @@ vim.cmd [[
set errorformat^=[----]\ %f:%l:\ %m
]]
vim.o.backup = false
vim.o.writebackup = false
vim.o.swapfile = false
vim.o.autoread = true
vim.o.undofile = true
vim.o.undodir = vim.fn.expand("~/.vim/neoundodir")
if vim.fn.isdirectory(vim.o.undodir) == 0 then
vim.fn.mkdir(vim.o.undodir, "p")
end
vim.keymap.set('n', ',cf', function()
local qf = vim.fn.getqflist()
for i, item in ipairs(qf) do