A Vim plugin that opens a browser window showing rendered Markdown as you edit. The preview updates live and closes when you close the file in Vim.
Overview
vim-instant-markdown adds live Markdown preview to Vim without leaving the editor. When you open a Markdown file, a browser window shows the compiled output in real time and closes once you close the buffer in Vim.
GitHub-flavored Markdown is supported, and the preview uses styling similar to GitHub. You can preview finicky Markdown files without switching to a separate browser text area.
The plugin works with a separate mini-server component. You install either instant-markdown-d via npm or the Python smdv package (which uses pandoc). Neovim users may use instant-markdown.nvim, a Lua rewrite compatible with the same mini-server.
Supported environments include OSX, Linux, and Windows, with platform-specific caveats noted in the documentation. You can start preview manually with :InstantMarkdownPreview or stop it with :InstantMarkdownStop when autostart is disabled.
Key features
- Live browser preview while editing Markdown in Vim
- GitHub-flavored Markdown support
- GitHub-like preview styling
- Auto-open and auto-close with the Vim buffer
- Manual start and stop commands
- Works with instant-markdown-d or smdv mini-server
- Neovim alternative plugin mentioned
- Configurable autostart behavior
Use cases
- Preview Markdown drafts without leaving Vim
- Check GitHub-style rendering while writing
- Edit README and docs with immediate visual feedback
- Avoid separate browser text-area preview workflows