Answer the question
In order to leave comments, you need to log in
How to create syntax in Vim?
I want to write a syntax for Vim, but I did not find a normal Russian manual for creating a syntax. Can you provide a link to an example or a resource.
Answer the question
In order to leave comments, you need to log in
In the syntax folder, create a file with the vim extension. (mysyntax.vim)
What to write in this file is written here https://habr.com/ru/post/140161/
In the .vimrc file, add the association of the extensions of the files you need with the syntax
For example:au BufRead,BufNewFile *.py set filetype=mysyntax
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question