diff --git a/vim/rc/plugins/neocomplcache.rc.vim b/vim/rc/plugins/neocomplcache.rc.vim index 19cd163..49e713c 100644 --- a/vim/rc/plugins/neocomplcache.rc.vim +++ b/vim/rc/plugins/neocomplcache.rc.vim @@ -20,6 +20,8 @@ endif 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*' diff --git a/vim/rc/plugins/neocomplete.rc.vim b/vim/rc/plugins/neocomplete.rc.vim index 74db5b4..251ae53 100644 --- a/vim/rc/plugins/neocomplete.rc.vim +++ b/vim/rc/plugins/neocomplete.rc.vim @@ -15,6 +15,8 @@ let g:neocomplete#keyword_patterns['default'] = '\h\w*' if !exists('g:neocomplete#force_omni_input_patterns') let g:neocomplete#force_omni_input_patterns = {} endif +let g:neocomplete#force_omni_input_patterns['cpp'] = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::' +let g:neocomplete#force_omni_input_patterns['go'] = '[^.[:digit:] *\t]\%(\.\|->\)' let g:neocomplete#force_omni_input_patterns['python'] = \ '\%([^. \t]\.\|^\s*@\|^\s*from\s.\+import \|^\s*from \|^\s*import \)\w*'