An unofficial, read-only Hacker News reader.

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

311 points by thanato0s 2 days ago | themouseless.dev | 118 comments on HN

View full thread · View on Hacker News

Comment thread (3)

  1. Absolutely. I don't think I've seen a text editor not struggling with long lines, Vim being far from the worse. I don't think I tested Neovim with treesitter though.
    Replies (1)
    1. I've been tinkering with my own editor on and off and getting its performance to be independent of line length was shockingly easy compared to my expectations based on other editors.

      One possible difference is that my syntax highlighting code was only applied on the text that's actually shown on screen and not the entire line. It came with some limitations like multiline string highlighting being broken, but then again I didn't put in much effort to make it work well.

      Replies (1)
      1. By default, Vim stops highlighting after 3000 characters (`help 'synmaxcol'`) but it's often too many. Changing that when opening this kind of file is trivial from the shell:

        vim -c 'set synmaxcol=200' my_big_line.xml