From e783b0a7747074c21bfd57942dc2a0e9f5fa38ed Mon Sep 17 00:00:00 2001 From: hophacker Date: Wed, 10 Apr 2019 18:35:31 +0800 Subject: [PATCH] Fix persistent undo --- vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrc b/vimrc index d53b3d9..b5751d7 100644 --- a/vimrc +++ b/vimrc @@ -65,7 +65,7 @@ set nowb " ================ Persistent Undo ================== " Keep undo history across sessions, by storing in file. " Only works all the time. -if has('persistent_undo') && !isdirectory(expand('~').'/.vim/backups') +if has('persistent_undo') && isdirectory(expand('~').'/.vim/backups') silent !mkdir ~/.vim/backups > /dev/null 2>&1 set undodir=~/.vim/backups set undofile