I’ve been developing a Vim syntax file for ISC Bind 9.15+

The stock named.vim that came with Vim is quite outdated (V9.4)

About 89 syntaxes out of 498 have been completed so far to catch up.

But the new named.vim is now 2000+ lines long. It’s still very fast.

I’m looking for HOWTOs or debugging techniques on large syntax files.

I am currently doing a [dual Vim terminal sessions (as described in Egbert) using Dr. Chip’s HiTraceLinks/HiLinks.

Where can i find such syntax debugging resources?

  • 2
    Can you be more specific on what you're looking for? You mention large files, so are you looking for help in benchmarking the syntax? Or do you want an inspector that can tell you which syntax gets applied to specific blocks of text? What kind of help do you need for debugging, or what kind of problem are you currently finding too hard to solve that you'd like to have help with?
    – filbranden
    Mar 31 '20 at 9:33
  • Benchmarking, not a problem ... yet. Two things: 1) Some kind of programming guide for Vim syntax highlighting, and 2) some kind of guide on debugging other than Dr. Chip's approach (which I think it's about the best one out there so far). A page about the Vim syntax highlight debugging egbert.net/blog/articles/… Mar 31 '20 at 14:29
  • 1
    Have you read Learn Vimscript the Hard Way? It has three chapters on syntax highlighting: Basic Syntax Highlighting, Advanced Syntax Highlighting and Even More Advanced Syntax Highlighting. Don't know if there's a focus on debugging but it's worth a skim.
    – B Layer
    Apr 1 '20 at 11:03
  • It’s still pretty terse. At the moment, I’ve successfully created the 837 syntax rule set for Bind9 named.conf file. It works. Sometime, trial and error is the way to do. I’ve been posting blogs on this largest Vim syntax file periodically. May 3 '20 at 14:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.