From 3a59a2c1ad131db664647d40481558f7b24eb9db Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 12 Feb 2020 18:50:39 +0100 Subject: vimrc: added undodir --- vimrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vimrc b/vimrc index db3682c..cf9cddd 100644 --- a/vimrc +++ b/vimrc @@ -196,6 +196,15 @@ nnoremap w :set wrap! nnoremap dw :windo diffthis nnoremap dn :diffoff! +"}}} +"{{{ undodir + +if !isdirectory($HOME . "/.vimundo") + call mkdir($HOME . "/.vimundo", "", 0700) +endif +set undodir=$HOME/.vimundo +set undofile + "}}} "{{{ Basic Movement -- cgit v1.2.3