From e5d3c26ac01a51b8f500090669c3b3f27e32f777 Mon Sep 17 00:00:00 2001 From: Robert Cranston <rcrnstn@rcrnstn.net> Date: Thu, 29 Aug 2019 10:56:34 +0200 Subject: [PATCH 2/5] Write to current directory instead of `/tmp` --- plugin/vim-markdown-preview.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index 46234d0..66170e7 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -118,9 +118,9 @@ function! Vim_Markdown_Preview_Local() if g:vim_markdown_preview_github == 1 call system('grip "' . b:curr_file . '" --export vim-markdown-preview.html --title vim-markdown-preview.html') elseif g:vim_markdown_preview_perl == 1 - call system('Markdown.pl "' . b:curr_file . '" > /tmp/vim-markdown-preview.html') + call system('Markdown.pl "' . b:curr_file . '" > vim-markdown-preview.html') elseif g:vim_markdown_preview_pandoc == 1 - call system('pandoc --smart --standalone "' . b:curr_file . '" > /tmp/vim-markdown-preview.html') + call system('pandoc --smart --standalone "' . b:curr_file . '" > vim-markdown-preview.html') else call system('markdown "' . b:curr_file . '" > vim-markdown-preview.html') endif -- 2.17.1