Do you want your editing of AsciiDoc (or Markdown) to look like this?
In order to get AsciiDoc support working nicely in VIM, you'll need a couple of things:
- asciidoc-vim: (the syntax highlight support)
- SyntaxRange: (to enable text ranges to be highlighted with different syntax files)
- ingo-library: (not really documented, but this is a dependency for SyntaxRange)
Then add another syntax file for AsciiDoc, by creating another plugin, with just the /syntax folder in it. (If you use pathogen, it should look something like this). In it configure your SyntaxRange plugin for matching for various languages:
The gherkin one, is there separately, since for the gherkin language, we're going to use the cucumber syntax file.
Since the SyntaxRange registration it's in the syntax file, it will only activate when editing asciidoc files.
PS2: For doing live html visualising of the file, you can use fast-live-reload:
Then just open the http://localhost:9000/test.html in the browser and watch it change as you save.