Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K
by tambourine_man on Monday January 16, 2023 @07:21PM
(#34407465)
I think you found the culprit. Syntax highlighters are notoriously slow.
You have every right to have high expectations for performance with Vim
Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K
by celrod on Tuesday January 17, 2023 @04:29AM
(#34410644)
Perhaps tree sitter can help the syntax highlighting?
https://github.com/latex-lsp/tree-sitter-latex
Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K
by lhl on Tuesday January 17, 2023 @12:15PM
(#34415278)
Related, but Neovim has experimental treesitter support (w/ Latex) built in these days: https://github.com/nvim-treesitter/nvim-treesitter
Depending on how hard you push it, Neovim can also be noticeably faster than Vim (notably Lua/LuaJIT being much faster than VimScript)
Re:Intel Core i9-13900T 35W CPU Outperforms 125W i9-12900K
by pletnes on Tuesday January 17, 2023 @05:51AM
(#34411096)
Some vim plugins are slow. Fortran highlighting used to be super slow for certain use cases 10 years ago. I think there were some bad regexes. Latex documents are often long (cf other code) and the syntax rules are complex.
User problem: since I use Vim for everything, my expectations as far as responsiveness goes are probably not calibrated correctly. It is almost always very good, so the moments of badness are noticeable. The user (me) is unreasonably picky.
Technical: LaTeX syntax highlighting. It is I’m pretty sure, generally known to be a bit of a pain. Lots of nested environments that can go back dozens of lines and change how commands are interpreted. It is happy in a decent (not huge or anything) sized Fortran code, so I think config is mostly OK. Maybe I should look around and see if there’s a nice LaTeX plugin out there.