A Vim plugin for previewing markdown files in a browser. This plugin was designed to maintain focus on Vim but use Google Chrome or Safari to preview rendered markdown. Thus, everything is done in the background so you never have to leave Vim.
The aim of this plugin is to be light weight with minimal dependencies. Thus, there is no polling engine or webserver involved.
vim-markdown-preview/
in .vim/bundle/
.When in a *.markdown or *.md file, vim-markdown-preview does the following when you type Ctrl-p
(can be remapped, see below):
Please recomment current mapping if you chose to use another mapping.
plugin/vim-markdown-preview.vim
plugin/vim-markdown-preview.vim
Ctrl-p
to view images:
plugin/vim-markdown-preview.vim
.The following example is using the write buffer option on OS X, with displaying images in the markdown preview:
vim-markdown-preview.html
in /tmp/
.REMOVE_TEMP_FILE
to 1.<your-file>.md.html
in the same directory.