diff --git a/vim/.vimrc b/vim/.vimrc index da8215b..13f0d94 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -99,3 +99,10 @@ if exists('+termguicolors') set termguicolors colorscheme simplify-dark endif + +" persistent undo history +if !isdirectory("/tmp/vim-undo") + call mkdir("/tmp/vim-undo", "", 0700) +endif +set undodir=/tmp/vim-undo +set undofile