Skip to content

Commit ecc94b9

Browse files
committed
Remove automatic preview for any opened markdown document, provide commands to start previewing.
1 parent 2f735b4 commit ecc94b9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

plugin/vimpreviewpandoc.vim

+4-5
Original file line numberDiff line numberDiff line change
@@ -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-
\ call vimpreviewpandoc#Preview()
1+
" Provide commands to turn on markdown preview for current buffer.
2+
" Once turned on, it will refresh preview for that buffer on each write.
3+
command MarkdownPreview call vimpreviewpandoc#Preview() | autocmd BufWritePost <buffer> call vimpreviewpandoc#Preview()
4+
command PreviewMarkdown call vimpreviewpandoc#Preview() | autocmd BufWritePost <buffer> call vimpreviewpandoc#Preview()

0 commit comments

Comments
 (0)