Skip to content

Commit

Permalink
added persistent undo
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Pfnür committed Dec 5, 2011
1 parent 5c9c324 commit f153d49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vimrc
Expand Up @@ -54,6 +54,9 @@

" Setting up the directories {
set backup " backups are nice ...
set undofile " so is persistent undo ...
set undolevels=1000 "maximum number of changes that can be undone
set undoreload=10000 "maximum number lines to save for undo on a buffer reload
" Moved to function at bottom of the file
"set backupdir=$HOME/.vimbackup// " but not when they clog .
"set directory=$HOME/.vimswap// " Same for swap files
Expand Down Expand Up @@ -437,7 +440,8 @@ function! InitializeDirectories()
let dir_list = {
\ 'backup': 'backupdir',
\ 'views': 'viewdir',
\ 'swap': 'directory' }
\ 'swap': 'directory',
\ 'undo': 'undodir' }

for [dirname, settingname] in items(dir_list)
let directory = parent . '/' . prefix . dirname . "/"
Expand Down

0 comments on commit f153d49

Please sign in to comment.