From ec7ef638e49959900560a111a3cd985ad6b79c30 Mon Sep 17 00:00:00 2001 From: JamshedVesuna Date: Sat, 2 May 2015 02:23:15 -0700 Subject: [PATCH] Updated plugin mapping comments --- plugin/vim-markdown-preview.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index 8b91b67..a26b483 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -99,9 +99,12 @@ endfunction "Maps Ctrl-p to Vim_Markdown_Preview() autocmd Filetype markdown,md map :call Vim_Markdown_Preview() -"Maps Ctrl-p to Vim_Markdown_Preview_Local() - saves the html file locally and -"displays images in path +"Display images - Maps Ctrl-p to Vim_Markdown_Preview_Local() - saves the html file locally +"and displays images in path "autocmd Filetype markdown,md map :call Vim_Markdown_Preview_Local() +"Display images - Automatically call Vim_Markdown_Preview_Local() on buffer write +"autocmd BufWritePost *.markdown,*.md :call Vim_Markdown_Preview_Local() + "Automatically call Vim_Markdown_Preview() on buffer write "autocmd BufWritePost *.markdown,*.md :call Vim_Markdown_Preview() -- 2.45.2