-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautocomplete.vim
36 lines (34 loc) · 1.15 KB
/
autocomplete.vim
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
"let g:acp_enableAtStartup = 0
"let g:neocomplete#enable_at_startup = 1
"let g:neocomplete#enable_smart_case = 1
"let g:neocomplete#min_syntax_length = 0
"let g:neocomplete#lock_buffer_name_pattern = "" "'\*ku\*'
"let g:necoghc_enable_detailed_browse = 1
"if !exists('g:neocomplete#keyword_patterns')
" let g:neocomplete#keyword_patterns = {}
"endif
"let g:neocomplete#keyword_patterns['default'] = '\h\w*'
"
"" Plugin key-mappings.
"inoremap <expr><C-g> neocomplete#undo_completion()
"inoremap <expr><C-l> neocomplete#complete_common_string()
"
"" Recommended key-mappings.
"" <CR>: close popup and save indent.
"inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
"function! s:my_cr_function()
" return neocomplete#smart_close_popup() . "\<CR>"
" " For no inserting <CR> key.
" "return pumvisible() ? neocomplete#close_popup() : "\<CR>"
"endfunction
"
"" <TAB>: completion.
"inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
"
"Bundle "Shougo/neocomplete.vim"
Bundle "Valloric/YouCompleteMe"
"
"" Autocomplete settings - use ctrl-space to get the shit going :)
" set ofu=syntaxcomplete#Complete
" inoremap <C-Space> <C-p>
" inoremap <C-@> <C-p>