Skip to content

Instantly share code, notes, and snippets.

View scwood's full-sized avatar

Spencer Wood scwood

View GitHub Profile
@scwood
scwood / undo.vim
Last active July 18, 2017 17:34
Persistant undo for Vim
if has('persistent_undo')
if !isdirectory($HOME . "/.vim/backups")
call mkdir($HOME . "/.vim/backups", "p")
endif
set undodir=~/.vim/backups
set undofile
endif