An unofficial, read-only Hacker News reader. Join the beta →

Show HN: I wrote an entire Vim manual over 4 years (opens external site)

308 points by thanato0s 1 day ago | themouseless.dev | 108 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. Regexes are line-based most of the time. And so the more characters you have on the line, the more work the engine has to do to parse it. I guess with greedy quantifiers you need to go to the end of the line and then match from there, and I don't think that's free. Multiply that by the crazy amount of regexes Vim native highlighting uses and the engine begins to struggle.

    That being said, I didn't look at the code of the engine itself, so I don't know for sure. But I know that disabling the highlighting get rid of these kind of issues most of the time.