From 260b53673cb24d1973f36cb19d766d81554495bb Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Tue, 3 Apr 2018 14:11:11 -0400 Subject: [PATCH] Adding persistent undo and remote swp directory to vimrc --- vim/vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index a858071..45da42c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -63,6 +63,17 @@ set scrolloff=5 set guioptions-=r set guioptions-=L +" Persistent undo +if(has('persistent_undo')) + set undodir=~/.vim/undo/ + set undofile + set undolevels=1000 + set undoreload=10000 +endif + +" Backup files +set directory=~/.vim/swp + " Source helper files " Only load plugins if vim-plug installed! if filereadable(expand("~/.vim/autoload/plug.vim")) -- libgit2 0.28.4