Skip to content

kat0h/bufpreview.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨ Markdown preview for Vim and Neovim ✨

Powerd By denops.vim🐜

introduction

Preview markdown on your browser.

Main features:

  • 💻 Multi Pratform Support (Mac/Linux/Windows)
  • 🙌 Supports Vim and Neovim
  • 📡 Sync Cursor Position
  • 🏃 Fast asynchronus updates
  • 🎨 Syntax highlight
  • 📊 Render yaml header
  • 📈 Render plantUML
  • ❤️ Simple Dependency and easy to install
  • 🖋 KaTeX Support

install & usage

requirements

Install with lazy.nvim

{
  'vim-denops/denops.vim',
  lazy = false,
},
{
  'kat0h/bufpreview.vim',
  dependencies = { "vim-denops/denops.vim" },
  build = "deno task prepare",
  lazy = false,
},

You don't need to lazy-load the denops plugin, since it loads its script files lazily by default. One issue to note is that deno task prepare modifies the plugin's own repository, which can cause lazy.nvim's update process to fail.

Install with vim-plug

Plug 'vim-denops/denops.vim'
Plug 'kat0h/bufpreview.vim', { 'do': 'deno task prepare' }

Install with dein.vim

call dein#add('vim-denops/denops.vim')
call dein#add('kat0h/bufpreview.vim', {'build': 'deno task prepare'})

Install with minpac

call minpac#add('vim-denops/denops.vim')
call minpac#add('kat0h/bufpreview.vim', {'do': 'silent! !deno task prepare'})

Install with Vundle

Plugin 'vim-denops/denops.vim'
Plugin 'kat0h/bufpreview.vim'

Then prepare the plugin manually where it was installed.

i.e.

cd ~/.vim/bundle/bufpreview.vim && deno task prepare

Commands

" Start the preview
:PreviewMarkdown
" Stop the preview
:PreviewMarkdownStop
" Toggle the window
:PreviewMarkdownToggle

Open preview window automatically

augroup bufpreview
  autocmd!
  autocmd Filetype markdown :PreviewMarkdown
augroup END

Special Thanks

License

MIT

this plugin uses these libraly

Author

Kota Kato

About

A markdown previewer for Vim and Neovim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages