Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #49 from wolfgangpfnuer/3.0

3.0
  • Loading branch information...
commit d88f4d7e47e52d08372a74c94d7479e8b1a47beb 2 parents db6e86d + 1a413d4
Steve Francia spf13 authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 .vimrc
12 .vimrc
View
@@ -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 . "/"
Please sign in to comment.
Something went wrong with that request. Please try again.