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

Syntax folding not working for large JSON files. #71

Open
wreed4 opened this issue Jun 14, 2016 · 1 comment
Open

Syntax folding not working for large JSON files. #71

wreed4 opened this issue Jun 14, 2016 · 1 comment

Comments

@wreed4
Copy link

wreed4 commented Jun 14, 2016

When a file gets sufficiently large (I'm not sure of the threshold, but around 90,000 lines seems to do it (I deal with json files up to almost 800,000 lines regularly), the lowest fold seems to "eat" all folds beneath it. So once you open up the top-level fold, you'll only have, say, three folds. But the third one (at the bottom) will be 60,000 lines. In reality, there should be say 10 top level folds, but the last 6 are being eaten up by the third one. On expanding the third top-level fold, the last fold within that is the remainder of the file folded as well. This continues. It makes the syntax folding pretty unusable for 80% of the file. I've temporarily switched my vimrc to set foldmethod to indent instead, which works fine (if a bit more verbose than I wish).

@Hoodoo
Copy link

Hoodoo commented Aug 31, 2016

41 352 is enough.

I was hoping to explore a detailed host report by govc with it, it wouldn't fold.

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

2 participants