forked from bleything/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugins
76 lines (62 loc) · 2.48 KB
/
plugins
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""
""" Ben Bleything's Vim Setup
""" Based on the work of many others. See README.rdoc for credits.
"""
""" Git Hubs: http://github.com/bleything/dotvim
""" Internet Electronic Mail: [email protected]
"""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" P L U G I N O P T I O N S
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" NERDCommenter
let NERDCreateDefaultMappings=0 " disable default mappings
let NERDMenuMode=0 " disable menu
let NERDSpaceDelims=1 " place spaces after comment chars
let NERDDefaultNesting=0 " don't recomment commented lines
map <leader>cc <plug>NERDCommenterToggle
map <leader>cC <plug>NERDCommenterSexy
map <leader>cu <plug>NERDCommenterUncomment
" sets ,a, to align on commas (useful for stacked method calls, etc)
map <leader>a, :Tabularize /=>\?<cr>
" For ctrl p remap
let g:ctrlp_map = "<leader>;"
set wildignore+=*/Libraries/*,*/tmp/*,*.so,*.swp,*.zip,*.plist,*.o,*.d,*.dia,*/build/*,*/*.framework/*
""" ack
map <leader>ack :Ack
map <leader>an :cn<cr>
map <leader>ap :cp<cr>
" Syntastic
let g:syntastic_javascript_checkers = ['jshint']
" add neocomplcache option
let g:neocomplcache_force_overwrite_completefunc=1
" add clang_complete option
let g:clang_complete_auto=0
let g:clang_complete_copen=0
let g:clang_complete_patterns=0
let g:clang_snippets=1
let g:clang_snippets_engine='clang_complete'
let g:clang_conceal_snippets=1
set conceallevel=2 concealcursor=inv
" Complete options (disable preview scratch window, longest removed to aways
" show menu)
set completeopt=menu,menuone
" Limit popup menu height
set pumheight=20
"" neocomplcache
" AutoComplPop like behavior.
" let g:neocomplcache_enable_at_startup = 1
" let g:neocomplcache_min_syntax_length = 2
" If you prefer the Omni-Completion tip window to close when a selection is
" made, these lines close it on movement in insert mode or when leaving
" insert mode
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
" Plugin key-mappings.
" imap <C-k> <Plug>(neocomplcache_snippets_expand)
" smap <C-k> <Plug>(neocomplcache_snippets_expand)
" inoremap <expr><C-g> neocomplcache#undo_completion()
" inoremap <expr><C-l> neocomplcache#complete_common_string()
"" Auto pairs
let g:AutoPairs={'(':')','{':'}',"'":"'",'"':'"', '`':'`'}