From b889e38b1ab5db4bde2c14605dbf93d6dc781e58 Mon Sep 17 00:00:00 2001 From: Dax T Games Date: Tue, 6 Jun 2017 05:01:06 -0400 Subject: [PATCH] Fix persistent undo (#758). Fixes #659 * Fix persistent undo * fixed persistent undo --- vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index 51606009..7b861e32 100644 --- a/vimrc +++ b/vimrc @@ -29,7 +29,7 @@ syntax on " Change leader to a comma because the backslash is too far away " That means all \x commands turn into ,x -" The mapleader has to be set before vundle starts loading all +" The mapleader has to be set before vundle starts loading all " the plugins. let mapleader="," @@ -50,7 +50,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