A
A
Artem Melnykov2019-08-07 06:10:48
vim
Artem Melnykov, 2019-08-07 06:10:48

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

2 answer(s)
J
Joss Nix, 2019-08-07
@NickProgramm

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

J
jcmvbkbc, 2019-08-07
@jcmvbkbc

You can link to an example or a resource.

:help syntax

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question