Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Vim-ASCIIDoc plugin

📅 2015-Apr-20 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ asciidoc, asciidoctor, plugin, vim ⬩ 📚 Archive

Vim-ASCIIDoc is a useful plugin for Vim if you frequently edit ASCIIDoc files.

Install

In addition, to the Vim-ASCIIDoc plugin, it also requires the installation of Vimple and Asif, two plugins by the same author.

Usage

" Vim-Asciidoc plugin sets compiler by default to asciidoc
" Here we set it to asciidoctor
autocmd Filetype asciidoc compiler asciidoctor
" 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


© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email