/marv

(mar)kdown (v)im: markdown html and pdf previews

Primary LanguageVim scriptMIT LicenseMIT

marv

(mar)kdown (v)im: markdown html and pdf previews

installation

marv relies on pandoc to render html and pdf. follow the installation instructions for your os.

use git or your plugin manager of choice to install marv.

commands

  • MarvHTML: renders the current markdown buffer to a html tempfile and opens the tempfile with the system default web browser.
  • MarvPDF: renders the current markdown buffer to a pdf tempfile and opens the tempfile with the system default pdf viewer.

mapping example

add the following to your vim configuration to preview markdown in html and pdf, respectively:

" marv {{{
nnoremap <silent><Leader>h :execute 'MarvHTML'<CR>
nnoremap <silent><Leader>p :execute 'MarvPDF'<CR>
" }}}

acknowledgements