vim-json icon indicating copy to clipboard operation
vim-json copied to clipboard

Syntax folding not working for large JSON files.

Open wreed4 opened this issue 9 years ago • 1 comments

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).

wreed4 avatar Jun 14 '16 20:06 wreed4

41 352 is enough.

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

Hoodoo avatar Aug 31 '16 12:08 Hoodoo