let g:acp_enableAtStartup = 0 " Disable AutoComplPop. let g:neocomplete#enable_at_startup = 1 " Use neocomplete. let g:neocomplete#enable_camel_case = 1 let g:neocomplete#enable_smart_case = 1 " Default # of completions is 100, that's crazy. let g:neocomplete#max_list = 5 let g:neocomplete#auto_completion_start_length = 3 " Set minimum syntax keyword length. let g:neocomplete#lock_buffer_name_pattern = '\*ku\*' let g:neocomplete#enable_auto_select = 1 " AutoComplPop like behavior. " Map standard Ctrl-N completion to Ctrl-Space inoremap " Plugin key-mappings. inoremap neocomplete#undo_completion() " This makes sure we use neocomplete completefunc instead of " the one in rails.vim, otherwise this plugin will crap out. let g:neocomplete#force_overwrite_completefunc = 1 " Define keyword. if !exists('g:neocomplete#keyword_patterns') let g:neocomplete#keyword_patterns = {} endif let g:neocomplete#keyword_patterns['default'] = '\h\w*' " Enable heavy omni completion. "if !exists('g:neocomplete#sources#omni#input_patterns') " let g:neocomplete#sources#omni#input_patterns = {} "endif "let g:neocomplete#force_omni_input_patterns.go = '[^.[:digit:] *\t]\.' if !exists('g:neocomplete#force_omni_input_patterns') let g:neocomplete#force_omni_input_patterns = {} endif let g:neocomplete#force_omni_input_patterns.go = '[^.[:digit:] *\t]\.' "let g:neocomplete#sources#omni#input_patterns.php = '[^. \t]->\h\w*\|\h\w*::' "let g:neocomplete#sources#omni#input_patterns.c = '[^.[:digit:] *\t]\%(\.\|->\)' "let g:neocomplete#sources#omni#input_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::' " Enable omni completion. autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS autocmd FileType python setlocal omnifunc=pythoncomplete#Complete autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete " Recommended key-mappings. " : close popup and save indent. imap my_cr_function() function! s:my_cr_function() return pumvisible() ? neocomplcache#close_popup() . "\" : "\" endfunction " : completion. inoremap pumvisible() ? "\" : "\" inoremap neocomplete#close_popup() inoremap neocomplete#cancel_popup() " Close popup by . "inoremap pumvisible() ? neocomplete#close_popup() : "\"