mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-18 02:36:26 +00:00
4f41d766a8
Also added Goyo
37 lines
1.2 KiB
VimL
37 lines
1.2 KiB
VimL
" Install plugins
|
|
Plug 'Shougo/neocomplcache.vim'
|
|
|
|
" Set configuration
|
|
let g:neocomplcache_enable_at_startup = 1
|
|
let g:neocomplcache_enable_smart_case = 1
|
|
let g:neocomplcache_max_list = 10
|
|
"let g:neocomplcache_enable_camel_case_completion = 1
|
|
let g:neocomplcache_enable_fuzzy_completion = 1
|
|
let g:neocomplcache_auto_completion_start_length = 2
|
|
let g:neocomplcache_manual_completion_start_length = 0
|
|
|
|
" omni_patterns
|
|
if !exists('g:neocomplcache_omni_patterns')
|
|
let g:neocomplcache_omni_patterns = {}
|
|
endif
|
|
|
|
" omni_functions
|
|
if !exists('g:neocomplcache_omni_functions')
|
|
let g:neocomplcache_omni_functions = {}
|
|
endif
|
|
|
|
" force_omni_patterns
|
|
if !exists('g:neocomplcache_force_omni_patterns')
|
|
let g:neocomplcache_force_omni_patterns = {}
|
|
endif
|
|
let g:neocomplcache_force_omni_patterns['c'] = '[^.[:digit:] *\t]\%(\.\|->\)'
|
|
let g:neocomplcache_force_omni_patterns['go'] = '[^.[:digit:] *\t]\%(\.\|->\)'
|
|
let g:neocomplcache_force_omni_patterns['python'] =
|
|
\ '\%([^. \t]\.\|^\s*@\|^\s*from\s.\+import \|^\s*from \|^\s*import \)\w*'
|
|
|
|
" keyword_patterns
|
|
if !exists('g:neocomplcache_keyword_patterns')
|
|
let g:neocomplcache_keyword_patterns = {}
|
|
endif
|
|
let g:neocomplcache_keyword_patterns['default'] = '[0-9a-zA-Z:#_]\+'
|