Closed UncleBill closed 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.
@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.
I tested it, but works. Did you set "set ft=html.css.javascript" manually? It may be autocmd problem.
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.
I tested it. But html and css snippet were works. And neocomplcache popup worked. Why?
Can you test it in minimal plugins and minimal .vimrc? It may be settings problem.
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.
OK.
I think it is neocomplcache skipped problem.
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.
This seems to disappear when I remove filetype plugin on
from my .vimrc. Hm.
Unfortunatelly, neocomplcache is not supported. This problem is occurred in neocomplete?
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.
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.
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. :\
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)