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

neocomplcache doesn't work in multi filetype #376

Closed UncleBill closed 11 years ago

UncleBill commented 11 years ago

I autocmd html's ft=html.css.javascript, since that neocomplcache doesn't work in html file. At the same time, both neosnippets and neocomplcache slow down editing, except I uncomment them( I use vundle to manage plugins)

Shougo commented 11 years ago

I autocmd html's ft=html.css.javascript, since that neocomplcache doesn't work in html file. At the same time, both neosnippets and neocomplcache slow down editing, except I uncomment them( I use vundle to manage plugins)

Is it :set ft=html.css.javascript? I will check it. And what's the "eocomplcache doesn't work in html file"? Please explain to me.

UncleBill commented 11 years ago

@Shougo yes! I wrote in .vimrc file (autocmd! BufNewFile,BufRead *.html set ft=html.css.javascript) for I can use all sinppets of html , css and javascript.

And what's the "eocomplcache doesn't work in html file"?

eocomplcache doesn't pop up any match list but error at the bottom.

Shougo commented 11 years ago

I tested it, but works. Did you set "set ft=html.css.javascript" manually? It may be autocmd problem.

UncleBill commented 11 years ago

Not manually. This is the setting in .vimrc

autocmd! BufNewFile,BufRead *.html set ft=html.css.javascript

I did try comment the setting , restart vim and try "set ft=html.css.javascript", problem is still there.

BTW, I had BundleUpdate my plugins.

Shougo commented 11 years ago

I tested it. But html and css snippet were works. And neocomplcache popup worked. Why?

Shougo commented 11 years ago

Can you test it in minimal plugins and minimal .vimrc? It may be settings problem.

UncleBill commented 11 years ago

Oh yes! I guess I find the reason out, that is not settings problem. Well, I am using a CPU freq. limitting tool(indicator-cpufreq) to control the CPU's frequency, that is the real reason. When I set CPU Perfomence( high frequency), neocomplecache works fine at both filetype setting.But after I switch it to Powersafe(low frequency), neocomplecache "down" immediately( without changing any setting ).

If neocomplcache is default to "disable" when CPU freq is low, please close this issue. Thanks! update: And I will enjoy neocomplcache in setting CPU's freq. high.

Shougo commented 11 years ago

OK.

I think it is neocomplcache skipped problem.

jsit commented 10 years ago

I think this is still happening for me. When in a file with ft=php.html, the completion popup is generated very slowly; the whole screen freezes for a few moments while it generates the completion list, it seems. As soon as I set ft=php, neocomplcache is much, much faster.

jsit commented 10 years ago

This seems to disappear when I remove filetype plugin on from my .vimrc. Hm.

Shougo commented 10 years ago

Unfortunatelly, neocomplcache is not supported. This problem is occurred in neocomplete?

jsit commented 10 years ago

Unfortunately I can't count on having Vim 7.3+ or Lua everywhere, so I'd rather not rely on those things.

FYI, I can confirm that this problem is caused by having filetype plugin on and set ft=php.html. I tested with this command to load only one plugin:

vim -Nu <(echo 'set rtp+=~/.vim/bundle/neocomplcache.vim/')

Then I did :NeoComplCacheEnable, :filetype plugin on, and :set ft=php.html, and things became very slow; particularly when typing quote marks or brackets.

Shougo commented 10 years ago

Hmmmm.... I think it is omni completion problem. Please disable omni completion.

Unfortunately I can't count on having Vim 7.3+ or Lua everywhere, so I'd rather not rely on those things.

Oh, your environment is too bad. I don't recommend to use old Vim.

jsit commented 10 years ago

I think it is omni completion problem. Please disable omni completion.

You were right! Thanks.

Oh, your environment is too bad. I don't recommend to use old Vim.

I'd rather not but I have no choice. :\