From 60531ed27059f1e6dd4bdf5cc68cf95187e181bd Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Tue, 9 Jun 2026 18:57:16 +0000 Subject: [PATCH] Auto-create undodir if it doesn't exist This is required for undo to work across restarts --- migrated/.vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/migrated/.vimrc b/migrated/.vimrc index fcb22ba..fdc2dba 100644 --- a/migrated/.vimrc +++ b/migrated/.vimrc @@ -35,6 +35,9 @@ if exists("+undofile") " Enable the persistent undo file(s) set undodir=~/.vim/undo set undofile + if !isdirectory(expand(&undodir)) + call mkdir(expand(&undodir), "p") + endif endif set switchbuf+=usetab " Switch to existing tab; open a new tab for the new buf