-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvimrc.before
43 lines (34 loc) · 1.17 KB
/
vimrc.before
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
" Before initialization
function! BundleExists(section, bundle)
return (index(g:use_bundles[a:section], a:bundle) >= 0)
endfunction
function! AddBundle(section, bundle)
if index(g:use_bundles[a:section], a:bundle) < 0
call add(g:use_bundles[a:section], a:bundle)
endif
endfunction
function! RemoveBundle(section, bundle)
if index(g:use_bundles[a:section], a:bundle) >= 0
call remove(g:use_bundles[a:section], index(g:use_bundles[a:section], a:bundle))
endif
endfunction
if exists("g:hardcore_mode_with_arrow_keys") && !exists("g:hardcore_mode")
let g:hardcore_mode = 1
endif
let g:use_bundles = {
\ "apperances": ["common", "airline", "numbers", "indentline"],
\ "languages": ["common", "ruby", "javascript", "textobjects", "html/css", "other"]
\}
if !exists("g:hardcore_mode")
let g:use_bundles.autocomplete = ["common", "youcompleteme"]
let g:use_bundles.tools = ["common", "tagbar", "nerdtree", "commenter", "git", "undotree", "search"]
else
if exists("g:use_arrow_keys")
unlet g:use_arrow_keys
endif
if exists("g:use_copy_cut_paste_keys")
unlet g:use_copy_cut_paste_keys
endif
let g:use_bundles.tools = ["common"]
let g:use_bundles.autocomplete = []
endif