New answers tagged

0

Most filetypes (like python) in Vim come with a syntax that defines highlight groups (see them via :highlight python<C-d>). These particular groups (e.g. pythonFunction) are then linked to a set of default groups (:help highlight-groups, e.g. Identifier). A colorscheme then provides combinations of foreground / background color and/or formatting like ...


0

My SyntaxRange plugin can highlight certain ranges of lines with a different, embedded syntax. You can either manually define those sections interactively: :1;/^\\begin{pycode}$/,/^\\end{pycode}$/SyntaxInclude python Or automate this in ~/.vim/after/ftplugin/tex/python_include.vim: call SyntaxRange#IncludeEx('start="^\\begin{pycode}$" end="^\\end{pycode}$...


0

conflict-marker.vim can highlight the markers themselves; it also offers jumps and ways to resolve them. my own ConflictDetection plugin detects and highlights the entire sections (via syntax highlighting); a companion ConflictMotions plugin offers motions and commands for resolution.


0

Try seeing in $VIMRUNTIME/syntax. Use :echo $VIMRUNTIME to know its value. In my computer, $VIMRUNTIME/syntax was /usr/share/vim/vim81/syntax. It has all the syntax files. If you have a vim with gui, you can also use Syntax menu to get all the filetypes supported.


0

This is what has worked for me Use the old regex engine for large files Don't use relative number, cursor line, and cursor column for large files Basically, anything which is dependent on syntax, or is a "nice to have", try to not do this for large files.


Top 50 recent answers are included