Skip to content
/ marv Public

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

License

Notifications You must be signed in to change notification settings

ratmav/marv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks