We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f735b4 commit ecc94b9Copy full SHA for ecc94b9
plugin/vimpreviewpandoc.vim
@@ -1,5 +1,4 @@
1
-autocmd FileType pandoc autocmd BufWinEnter,BufWritePost <buffer>
2
- \ call vimpreviewpandoc#Preview()
3
-
4
-autocmd FileType markdown autocmd BufWinEnter,BufWritePost <buffer>
5
+" Provide commands to turn on markdown preview for current buffer.
+" Once turned on, it will refresh preview for that buffer on each write.
+command MarkdownPreview call vimpreviewpandoc#Preview() | autocmd BufWritePost <buffer> call vimpreviewpandoc#Preview()
+command PreviewMarkdown call vimpreviewpandoc#Preview() | autocmd BufWritePost <buffer> call vimpreviewpandoc#Preview()
0 commit comments