paperlined.org
apps > vim
document updated 4 months ago, on Aug 11, 2025

custom syntax file in Vim

writing a syntax file

Basic information for making your own syntax file:

The official vim documentation:

example syntax files

You can find the built-in syntax files by a couple of ways:

debugging a syntax file

more than one syntax in one file

The SyntaxRange vim plugin looks really cool!

(more background by other authors: [1] [2] )

Some other ways to accomplish the same thing: