📅 2015-Apr-20 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ asciidoc, asciidoctor, plugin, vim ⬩ 📚 Archive
Vim-ASCIIDoc is a useful plugin for Vim if you frequently edit ASCIIDoc files.
In addition, to the Vim-ASCIIDoc plugin, it also requires the installation of Vimple and Asif, two plugins by the same author.
Plugin sets the compiler by default to
If you want to use
asciidoctor as compiler, use the command
If you want to set the default compiler, add this line to Vimrc:
" Vim-Asciidoc plugin sets compiler by default to asciidoc " Here we set it to asciidoctor autocmd Filetype asciidoc compiler asciidoctor
asciidoctoras compiler, the plugin will keep complaining that it needs to know the themes directory for this compiler. To set the themes directory, I set this in my Vimrc:
" Set themes directory for ASCIIDoctor in Vim let g:asciidoctor_themes_dir='~/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/asciidoctor-1.5.2/data/stylesheets'
Tried with: Vim 7.4 and Ubuntu 14.04