dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

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:
Mvim/vimrc | 11+++++++++++
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"))