Skip to content

Commit

Permalink
Enable Vim's persistent undo
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Nov 14, 2012
1 parent e76f8b0 commit d245b5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vimrc
Expand Up @@ -61,6 +61,12 @@ set softtabstop=2
set shiftwidth=2 set shiftwidth=2
set expandtab 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 " Disable swapfile and backup {{{2
set nobackup set nobackup
set noswapfile set noswapfile
Expand Down

0 comments on commit d245b5c

Please sign in to comment.