This plugin connects Vim and Neovim to the live markdown viewer Vivify.
- open the current buffer's contents in Vivify with
:Vivify - all open viewers automatically update their content as you are editing it in Vim
- all open viewers automatically scroll to keep in sync with your cursor in Vim
g:vivify_instant_refresh = 1- refresh page contents on
TextChangedandTextChangedI(default)
- refresh page contents on
g:vivify_instant_refresh = 0- refresh page contents on
CursorHoldandCursorHoldI
- refresh page contents on
g:vivify_auto_scroll = 1- enable viewer auto-scroll (default)
g:vivify_auto_scroll = 0- disable viewer auto-scroll
g:vivify_filetypes- additional filetypes to recognize as markdown
- for example
let g:vivify_filetypes = ['vimwiki']
With Vivify installed in your PATH, you can install this plugin just like any other Vim plugin, e.g.
- with Vim8's native plugin manager by adding it to your
~/.vim/pack/plugin/start(works best as a submodule of your dotfiles - with Plug:
Plug jannis-baum/vivify.vim - with Lazy:
{ "jannis-baum/vivify.vim" } - ...