Skip to content

Instantly share code, notes, and snippets.

@mirlord
Created May 24, 2010 07:54
Show Gist options
  • Save mirlord/411636 to your computer and use it in GitHub Desktop.
Save mirlord/411636 to your computer and use it in GitHub Desktop.
set noundofile
"set undodir=~/.vim/undo/
au BufReadPost * silent! execute "rundo" . $HOME . "/.vim/undo" . expand("%:p")
au BufWritePost * silent! call mkdir($HOME . "/.vim/undo" . expand("%:p:h"), "p", 0755)
au BufWritePost * execute "wundo" . $HOME . "/.vim/undo" . expand("%:p")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment