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

two options #430

Closed kdurant closed 9 years ago

kdurant commented 11 years ago

When editing large files if use neocomplcache, the speed is very slow.Because neocomplcache is caching files. So, I look the docment, and find two options. 1st. g:neocomplcache_disable_caching_file_path_pattern

I set : let g:neocomplcache_disable_caching_file_path_pattern = ".txt"

it don't work!

2nd. let g:neocomplcache_caching_limit_file_size I set : let g:neocomplcache_caching_limit_file_size = 1 It don't work too!

Shougo commented 11 years ago

let g:neocomplcache_disable_caching_file_path_pattern = ".txt" it don't work!

You must set g:neocomplcache_disable_caching_file_path_pattern by regular expression. Example:

let g:neocomplcache_disable_caching_file_path_pattern = '.*\.txt$'

let g:neocomplcache_caching_limit_file_size = 1 It don't work too!

You must clear cache by :NeoComplCacheClean.

Shougo commented 11 years ago

When editing large files if use neocomplcache, the speed is very slow.Because neocomplcache is caching files. So, I look the docment, and find two options.

You should use neocomplete.vim. It is faster than neocomplcache.

https://github.com/Shougo/neocomplete.vim

kdurant commented 11 years ago

You must set g:neocomplcache_disable_caching_file_path_pattern by regular expression. Example: let g:neocomplcache_disable_caching_file_path_pattern = '.*.txt$'

it still generates cache files

kdurant commented 11 years ago

I tryed vim7.3.1136. when used unite , it is quick than vim7.3.969 But vim7.3.1136 can't use neocomlete, it include lua interface.

So ....

Shougo commented 11 years ago

I'm using Vim 7.3.1195. And it is works. I think you don't write neocomplete's settings.

Note: neocomplete settings is not compatible with neocomplcache! It is different plugin.

j5shi commented 9 years ago

Hi, I'm suffering from the same problem, neocomplcache takes too much time on opening large files so that I tried to disable caching for some types of files, I tried this

    let g:neocomplcache_disable_caching_file_path_pattern='.*\.log$'

for *.log files, but neocomplcache cached for log files anyway.

Is there any way to check if it's my problem or neocomplcaches'?

Shougo commented 9 years ago

This is neocomplcache feature. You can use vimproc for caching.

https://github.com/Shougo/vimproc.vim