add persistent undo functionality to both neovim and vim

This commit is contained in:
2025-10-09 18:42:16 +02:00
parent 71ba1dce14
commit 1d8df9d310
2 changed files with 13 additions and 0 deletions
+7
View File
@@ -33,6 +33,13 @@ nnoremap H ^
nnoremap L $
set autoindent
set cursorline
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