Permalink
Browse files

Enable Vim's persistent undo

  • Loading branch information...
1 parent e76f8b0 commit d245b5cf678021b0ee445efe7b4f868e06881217 @nelstrom committed Nov 14, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 vimrc
View
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")
+endif
" Disable swapfile and backup {{{2
set nobackup
set noswapfile

0 comments on commit d245b5c

Please sign in to comment.