How do I switch to a faster regex engine in Vim when syntax highlighting is causing slowdowns?
:set regexpengine=1
Vim ships with two regex engines and lets you control which one is used.
:set regexpengine=1
Vim ships with two regex engines and lets you control which one is used.
:set synmaxcol=200
The synmaxcol option tells Vim the maximum column up to which it will apply syntax highlighting on each line.
:InspectTree
Opens an interactive split window showing the treesitter parse tree for the current buffer.
:syntime on
When Vim feels sluggish while editing files with complex syntax highlighting, :syntime lets you profile exactly which syntax rules are consuming the most time.
:syntax match Conceal /pattern/ conceal
Vim's conceal feature lets you visually hide text that matches a pattern, or replace it with a single character.
:TSInstall python javascript
nvim-treesitter provides improved syntax highlighting, indentation, and code navigation using Tree-sitter parsers.
Treesitter incremental selection with grn/grc
nvim-treesitter provides incremental selection that expands based on the syntax tree rather than simple text patterns.
vim-polyglot
The vim-polyglot plugin is a curated collection of language packs for Vim that provides syntax highlighting, indentation, filetype detection, and compiler suppo