Appendix E. Vim Syntax Highlighter

Syntax highlighting is incredibly useful, in addition to making reading AsciiDoc documents much easier syntax highlighting also helps you catch AsciiDoc syntax errors as you write your documents.

The AsciiDoc distribution directory contains a Vim syntax highlighter for AsciiDoc (./vim/syntax/asciidoc.vim), you can find the latest version in the online AsciiDoc repository.

Install the highlighter by copying asciidoc.vim to your $HOME/.vim/syntax directory (create it if it doesn’t already exist).

To enable syntax highlighing: