#Vim Markdown Preview
A vim plugin for previewing markdown files in a browser. This plugin was designed to maintan focus on vim but use Google Chrome to preview rendered markdown. Thus, everything is done in the background so you never have to leave vim.
#Installation
- With Pathogen: Place
vim-markdown-preview/
in .vim/bundle/
.
#Requirements
#Usage
When in a *.markdown or *.md file, vim-markdown-preview maps Ctrl-p
as follows:
- If you are not previewing the current file:
- Open an html rendered version of your file in Google Chrome in the background.
- Otherwise:
- Refresh your preview of the current markdown file in Google Chrome.
#Behind The Scenes
- First, vim-markdown-preview renders your markdown as html and creates a temporary file
vim-markdown-preview.html
in /tmp/
.
- Next, vim-markdown-preview then either opens the html file or refreshes the Google Chrome tab.
- Lastly, vim-markdown-preview removes the temporary file so nothing left behind.