From 5234b61618c1db05afd5f8dbe4f753541d0ddef1 Mon Sep 17 00:00:00 2001 From: JamshedVesuna Date: Sat, 1 Aug 2015 11:18:18 -0700 Subject: [PATCH] Fixed image rendering markdown path --- plugin/vim-markdown-preview.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index f265b90..d13115a 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -74,9 +74,10 @@ function! Vim_Markdown_Preview_Local() let curr_file = expand('%:p') if b:vim_markdown_preview_github == 1 - call system('grip ' . curr_file . ' --export /tmp/vim-markdown-preview.html') + call system('grip ' . curr_file . ' --export ' . curr_file . '.html') else - call system('markdown ' . curr_file . ' > /tmp/vim-markdown-preview.html') + call system('markdown ' . curr_file . ' > ' . curr_file . '.html') + endif if OSNAME == 'unix' -- 2.45.2