From d6f92f6280a376a4bf35484e823831687c96dbb1 Mon Sep 17 00:00:00 2001 From: Sonny Date: Mon, 5 Mar 2018 23:29:29 +0100 Subject: [PATCH] Persistent undo --- vim/.vimrc | 7 +++++++ 1 file changed, 7 insertions(+) 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