Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow vim startup on big files #56

Open
AnatoleLucet opened this issue Nov 2, 2020 · 2 comments
Open

Slow vim startup on big files #56

AnatoleLucet opened this issue Nov 2, 2020 · 2 comments

Comments

@AnatoleLucet
Copy link

AnatoleLucet commented Nov 2, 2020

It seems like spelunker makes nvim (and vim?) really slow to open large files.

With this plugin enabled, nvim switch from ~500ms to +8s to open a +7000 lines file. I've tried this just by switching g:enable_spelunker_vim from 0 to 1.

I know about this var: g:spelunker_check_type, but I still'd like to have "auto refreshing" spell checking.
Could it be possible to check for spelling errors in a way that doesn't block vim?

I don't know what other info I could give you, maybe you already have a hack to make it faster?
Anyway, thanks for this plugin, it's really great!

@kuznetsss
Copy link

Thank you for the plugin. It's really useful.

Same for me. Possible solution is to add setting for maximum file size for which check on opening/saving is allowed.

@zhaogaolong
Copy link

zhaogaolong commented May 11, 2024

I fount spelunker/matches.vim is too slow.

nvim  --startuptime nvim-start.txt  big.txt

nvim-start.txt file fount

350.136  000.092  000.092: sourcing /share/nvim/site/pack/packer/start/spelunker.vim/autoload/spelunker/white_list.vim
350.680  000.051  000.051: sourcing /share/nvim/site/pack/packer/start/spelunker.vim/autoload/spelunker/utils.vim
5754.531  000.110  000.110: sourcing /share/nvim/site/pack/packer/start/spelunker.vim/autoload/spelunker/matches.vim
5774.694  5465.232: opening buffers

fix it: let g:spelunker_check_type = 2 default = 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants