forked from ruiheng/vimfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc.example
More file actions
25 lines (23 loc) · 742 Bytes
/
vimrc.example
File metadata and controls
25 lines (23 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
" all we need to do here is just one simple sourcecommand:
" source <path_to_vimfiles_project>/rc_entry.vim
"
" all works are done in rc_entry.vim.
"
" but to make this vimrc file work as portable as possible,
" (so that I can copy around, without minimal modifications)
" use a loop to test a list of possible values.
" this is just a list of possible values for all my computers,
" you should change to your favorite.
let s:vimfiles_project_dir_list = [
\'D:\MyData\vimfiles',
\'S:\ruiheng\vim\vimfiles',
\]
for s:dir in s:vimfiles_project_dir_list
if isdirectory(s:dir)
let s:vimfiles_project_dir = s:dir
break
endif
endfor
if exists('s:vimfiles_project_dir')
execute 'source ' . s:vimfiles_project_dir . '/rc_entry.vim'
endif