From 5f4c8b507aee23922e07e42aec099cb2b51d6f2f Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Mon, 9 Nov 2020 11:01:46 -0500 Subject: [PATCH] Maybe finally properly fix undodir --- vim/vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index c627991..0e75436 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -43,10 +43,10 @@ if has('nvim') endif if has("persistent_undo") - if !isdirectory("$HOME" . "/.undodir") - call mkdir("$HOME" . "/.undodir", "p", 0770) + if !isdirectory($HOME . "/.undodir") + call mkdir($HOME . "/.undodir", "p", 0770) endif - set undodir="$HOME" . "/.undodir//" + set undodir=~/.undodir/ set undofile augroup undodir autocmd!