Permalink
Browse files

Merge pull request #49 from wolfgangpfnuer/3.0

3.0
  • Loading branch information...
2 parents db6e86d + 1a413d4 commit d88f4d7e47e52d08372a74c94d7479e8b1a47beb @spf13 spf13 committed Feb 14, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 .vimrc
View
12 .vimrc
@@ -127,6 +127,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
" Could use * rather than *.*, but I prefer to leave .files unsaved
au BufWinLeave *.* silent! mkview "make vim save view (state) (folds, cursor, etc)
au BufWinEnter *.* silent! loadview "make vim load view (state) (folds, cursor, etc)
@@ -503,10 +506,11 @@ function! InitializeDirectories()
let separator = "."
let parent = $HOME
let prefix = '.vim'
- let dir_list = {
- \ 'backup': 'backupdir',
- \ 'views': 'viewdir',
- \ 'swap': 'directory' }
+ let dir_list = {
+ \ 'backup': 'backupdir',
+ \ 'views': 'viewdir',
+ \ 'swap': 'directory',
+ \ 'undo': 'undodir' }
for [dirname, settingname] in items(dir_list)
let directory = parent . '/' . prefix . dirname . "/"

0 comments on commit d88f4d7

Please sign in to comment.