Skip to content

Instantly share code, notes, and snippets.

@scwood
Last active July 18, 2017 17:34
Show Gist options
  • Save scwood/a5ff1a0ad960e97362ce to your computer and use it in GitHub Desktop.
Save scwood/a5ff1a0ad960e97362ce to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment