Shougo / neocomplcache.vim

Ultimate auto-completion system for Vim.
http://www.vim.org/scripts/script.php?script_id=2620
1.72k stars 135 forks source link

Vim freeze after entering /\*\* #471

Closed hotwatermorning closed 10 years ago

hotwatermorning commented 10 years ago

If neocomplcache is enabled, vim will freeze after entering a sequence like this /** in insert-mode.

.vimrc

"vim configuration

set encoding=utf-8
set fileencoding=utf-8
scriptencoding utf-8
set termencoding=utf-8

set nocompatible!
filetype off

set rtp+=~/.vim

if has('vim_starting')
    set rtp+=~/.vim/bundle/neobundle.vim
endif

call neobundle#rc(expand('~/.vim/bundle'))

NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'Shougo/neocomplcache'

filetype on
filetype indent on
filetype plugin on

NeoBundleCheck

set nocompatible

syntax enable

set directory=~/.vimtemp
set fileencodings=iso-2022-jp,utf-8,cp932,euc-jp,default,latin

"Note: This option must set it in .vimrc(_vimrc).  NOT IN .gvimrc(_gvimrc)!
" Disable AutoComplPop.
let g:acp_enableAtStartup = 0
" Use neocomplcache.
let g:neocomplcache_enable_at_startup = 0
" Use smartcase.
let g:neocomplcache_enable_smart_case = 1
" Set minimum syntax keyword length.
let g:neocomplcache_min_syntax_length = 3
" let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'

" Define dictionary.
let g:neocomplcache_dictionary_filetype_lists = {
    \ 'default' : '',
    \ 'vimshell' : $HOME.'/.vimshell_hist',
    \ 'scheme' : $HOME.'/.gosh_completions'
        \ }

" Define keyword.
if !exists('g:neocomplcache_keyword_patterns')
    let g:neocomplcache_keyword_patterns = {}
endif
let g:neocomplcache_keyword_patterns['default'] = '\h\w*'

" Plugin key-mappings.
inoremap <expr><C-g>     neocomplcache#undo_completion()
inoremap <expr><C-l>     neocomplcache#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 neocomplcache#smart_close_popup() . "\<CR>"
  " For no inserting <CR> key.
  "return pumvisible() ? neocomplcache#close_popup() : "\<CR>"
endfunction

" <TAB>: completion.
inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"
" <C-h>, <BS>: close popup and delete backword char.
inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><C-y>  neocomplcache#close_popup()
inoremap <expr><C-e>  neocomplcache#cancel_popup()

" 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

vim version

:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb  2 2014 11:19:16)
MS-Windows 32-bit console version
Included patches: 1-161
Modified by koron.kaoriya@gmail.com
Compiled by koron.kaoriya@gmail.com
Huge version without GUI.  Features included (+) or not (-):
+acl             +cryptv          +find_in_path    +lispindent      +perl/dyn        +startuptime     +virtualedit
+arabic          +cscope          +float           +listcmds        +persistent_undo +statusline      +visual
+autocmd         +cursorbind      +folding         +localmap        -postscript      -sun_workshop    +visualextra
-balloon_eval    +cursorshape     -footer          +lua/dyn         +printer         +syntax          +viminfo
-browse          +dialog_con      +gettext/dyn     +menu            +profile         +tag_binary      +vreplace
++builtin_terms  +diff            +guess_encode    +migemo/dyn      +python/dyn      +tag_old_static  +wildignore
+byte_offset     +digraphs        -hangul_input    +mksession       +python3/dyn     -tag_any_white   +wildmenu
+cindent         -dnd             +iconv/dyn       +modify_fname    +quickfix        -tcl             +windows
+clientserver    -ebcdic          +insert_expand   +mouse           +reltime         -tgetent         +writebackup
+clipboard       +emacs_tags      +jumplist        -mouseshape      +rightleft       -termresponse    -xfontset
+cmdline_compl   +eval            +keymap          +multi_byte      +ruby/dyn        +textobjects     -xim
+cmdline_hist    +ex_extra        +kaoriya         +multi_lang      +scrollbind      +title           -xterm_save
+cmdline_info    +extra_search    +langmap         -mzscheme        +signs           -toolbar         -xpm_w32
+comments        +farsi           +libcall         -netbeans_intg   +smartindent     +user_commands
+conceal         +file_in_path    +linebreak       +path_extra      -sniff           +vertsplit
   system vimrc file: "$VIM\vimrc"
     user vimrc file: "$HOME\_vimrc"
 2nd user vimrc file: "$HOME\vimfiles\vimrc"
 3rd user vimrc file: "$VIM\_vimrc"
      user exrc file: "$HOME\_exrc"
  2nd user exrc file: "$VIM\_exrc"
Compilation: cl -c /W3 /nologo  -I. -Iproto -DHAVE_PATHDEF -DWIN32   -DFEAT_CSCOPE      /DMODIFIED_BY=\"koron.kaoriya@gmail.co
m\" /DDYNAMIC_MSVCRT_DLL=\"msvcr100.dll\" /DGETTEXT_DLL=\"intl.dll\" /D_BIND_TO_CURRENT_VCLIBS_VERSION=1 /D_USE_32BIT_TIME_T=1
 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 /Fo.\ObjCXULYHRi386/ /Ox /GL -DNDEBUG /MD -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -DDYNAMIC_M
IGEMO -DFEAT_LUA -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua51.dll\" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python27.
dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python33.dll\" -DFEAT_PERL -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"
perl518.dll\" -DFEAT_RUBY -DDYNAMIC_RUBY -DDYNAMIC_RUBY_VER=20 -DDYNAMIC_RUBY_DLL=\"msvcrt-ruby200.dll\" -DFEAT_HUGE /Fd.\ObjC
XULYHRi386/ /Zi
Linking: link /RELEASE /nologo /subsystem:console /LTCG:STATUS oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib  c
omdlg32.lib ole32.lib uuid.lib /machine:i386 /nodefaultlib  msvcrt.lib   user32.lib   /nodefaultlib:lua51.lib   /nodefaultlib:
python27.lib /nodefaultlib:python33.lib      /PDB:vim.pdb -debug
Shougo commented 10 years ago

Sorry, neocomplcache is not supported. You should disable "filename_complete" source or use neocomplete instead of neocomplcache.