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
+13
View File
@@ -42,6 +42,19 @@ nnoremap ,x <C-x>
set autoindent
set cursorline
set nobackup
set nowritebackup
set noswapfile
set autoread
set undofile
set undodir=~/.vim/undodir
if !isdirectory(expand('~/.vim/undodir'))
call mkdir(expand('~/.vim/undodir'), 'p')
endif
set undodir=~/.vim/undodir
set undofile
set errorformat^=[----]\ %f:%l:\ %m
set expandtab
set exrc