set $VIMHOME handling symlinked vimrc; activate undofile
This commit is contained in:
parent
8ac81c64f5
commit
a0bff60737
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
undo/*
|
0
undo/.gitkeep
Normal file
0
undo/.gitkeep
Normal file
5
vimrc
5
vimrc
@ -1,6 +1,7 @@
|
|||||||
"==============================================================================
|
"==============================================================================
|
||||||
" General Settings
|
" General Settings
|
||||||
"==============================================================================
|
"==============================================================================
|
||||||
|
let $VIMHOME=fnamemodify(resolve(expand("<sfile>")), ":p:h")
|
||||||
set nocompatible
|
set nocompatible
|
||||||
syntax enable
|
syntax enable
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
@ -14,8 +15,8 @@ set softtabstop=4
|
|||||||
set ruler
|
set ruler
|
||||||
set showmatch
|
set showmatch
|
||||||
if has("persistent_undo")
|
if has("persistent_undo")
|
||||||
"set undodir=$VIMHOME/undo
|
set undodir=$VIMHOME/undo
|
||||||
"set undofile
|
set undofile
|
||||||
endif
|
endif
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set hlsearch
|
set hlsearch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user