if has("win32")
set directory=$TEMP//,c:/tmp//,c:/temp//
else
- set directory=~/tmp//,/var/tmp//,/tmp//
+ set directory=~/tmp/vim//,~/tmp//,/var/tmp//,/tmp//
endif
" if a directory ends in two path separators "//"
" or "\\", the swap file name will be built from the complete path to
set wildmenu " command-line completion shows a list of matches
set wildmode=longest,list:longest,full " Bash-vim completion behavior
+" Keep undo history across sessions by storing it in a file
+if has('persistent_undo')
+ let myUndoDir = expand('$HOME/tmp/vim/undo')
+ " Create dirs
+ call system('mkdir -p ' . myUndoDir)
+ let &undodir = myUndoDir
+ set undofile
+endif
+
" 22 executing external commands
if has("filterpipe")