set $VIMHOME handling symlinked vimrc; activate undofile

This commit is contained in:
Josh Holtrop 2012-12-09 11:49:25 -05:00
parent 8ac81c64f5
commit a0bff60737
3 changed files with 4 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
undo/*

0
undo/.gitkeep Normal file
View File

5
vimrc
View File

@ -1,6 +1,7 @@
"==============================================================================
" General Settings
"==============================================================================
let $VIMHOME=fnamemodify(resolve(expand("<sfile>")), ":p:h")
set nocompatible
syntax enable
filetype plugin indent on
@ -14,8 +15,8 @@ set softtabstop=4
set ruler
set showmatch
if has("persistent_undo")
"set undodir=$VIMHOME/undo
"set undofile
set undodir=$VIMHOME/undo
set undofile
endif
set mouse=a
set hlsearch