See the wiki page for more help.Įxample: Using Google Chrome. Note that bug #16 does not allow cross operating system and browser support.
#Macdown vim plugin mac os#
If you are on Mac OS X, Safari is the default. let vim_markdown_preview_hotkey=''īy default, if you are using Unix, Google Chrome is the default browser. Don't forget to add the single quotation marks.Įxample: Mapping Control M. To remap Control p to a different hotkey, change the binding. let vim_markdown_preview_toggle=3īy default, this plugin maps (Control p) to activate the preview. let vim_markdown_preview_toggle=2Įxample: To disregard images and still automatically preview on buffer write. let vim_markdown_preview_toggle=1Įxample: To display images automatically on buffer write. There are a total of four values ( 0, 1, 2, 3) this option can take.ĭefault: 0, which maps Control p ( not a buffer write) to generating the preview and does not display images.Įxample: To display images with the hotkey mapping (defaults to Control p). Generate preview on buffer write (Example: on :w).This option does two things (to be fixed by #17): Note that after changing an option, you have to restart Vim for the change to take effect. If you prefer to change these, just add the following lines to your. OptionsĪll options have default values and work out of the box. It is recommended to use grip when rendering Unicode characters. If using Grip, put let vim_markdown_preview_github=1 in your.Markdown or grip (for GitHub flavoured markdown).md file, and Ctrl-p is pressed, this plugin will either open a preview in your browser, or refresh your current preview (can be remapped, see Options). Add Plugin 'JamshedVesuna/vim-markdown-preview' to your.With Pathogen: Place vim-markdown-preview/ in.Thus, there is no polling engine or webserver involved. The aim of this plugin is to be light weight with minimal dependencies. A small Vim plugin for previewing markdown files in a browser.