Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enable Vim's persistent undo

  • Loading branch information...
commit d245b5cf678021b0ee445efe7b4f868e06881217 1 parent e76f8b0
@nelstrom authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 vimrc
6 vimrc
@@ -61,6 +61,12 @@ set softtabstop=2
set shiftwidth=2
set expandtab
+" Enable persistent undo {{{2
+set undofile
+set undodir=~/tmp/vim/undo
+if !isdirectory(expand(&undodir))
+ call mkdir(expand(&undodir), "p")
" Disable swapfile and backup {{{2
set nobackup
set noswapfile
Please sign in to comment.
Something went wrong with that request. Please try again.