commit 260b53673cb24d1973f36cb19d766d81554495bb (patch)
parent ec61f0a2a15aef0ba7f3b91c2d58e182e4cee98d
Author: Alexander Karle <akarle@umass.edu>
Date: Tue, 3 Apr 2018 14:11:11 -0400
Adding persistent undo and remote swp directory to vimrc
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git 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"))