-
Notifications
You must be signed in to change notification settings - Fork 3
/
ruiheng.vimrc
43 lines (38 loc) · 1.14 KB
/
ruiheng.vimrc
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
" all we need to do here is just one simple source command:
" 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:\devel\vimfiles',
\'D:\MyData\vimfiles',
\'S:\ruiheng\vim\vimfiles',
\'~/vimfiles',
\]
" bundles in this list will be loaded, don't need to create symblic
" link in 'bundle' dir.
let g:load_bundles = [
\'l9',
\'fuzzyfinder',
\'surround',
\'repeat',
\'zencoding',
\'numbertoggle',
\]
let g:ghcmod_ghc_options = ['-package-db=' . expand('$HS_HOME') . '/lib/package.conf.d']
for s:dir in s:vimfiles_project_dir_list
if isdirectory(expand(s:dir))
let s:vimfiles_project_dir = s:dir
break
endif
endfor
if exists('s:vimfiles_project_dir')
let g:vimfiles_username = 'ruiheng'
execute 'source ' . s:vimfiles_project_dir . '/rc_entry.vim'
endif
let g:zv_zeal_directory = "/usr/local/bin/zeal"