From 0c0262b6a164a25fd0adf402551fd1a57dc084db Mon Sep 17 00:00:00 2001 From: "U-EMEA\\59698" <59698@N104828.emea.group.grundfos.com> Date: Wed, 8 Aug 2018 09:54:36 +0200 Subject: [PATCH] Keep pandoc preview --- vimrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index 3e2222b..6b029db 100644 --- a/vimrc +++ b/vimrc @@ -194,7 +194,7 @@ function! s:Iar() endfunction command! -bang -nargs=0 -complete=file Iar call s:Iar() -function! Markdown_Preview() +function! Pandoc_Preview() let b:curr_file = expand('%:p') call system('pandoc --standalone "' . b:curr_file . '" > markdown-preview.html') call system('firefox markdown-preview.html 1>/dev/null 2>/dev/null &') @@ -318,9 +318,11 @@ packadd supertab " markdown "packadd vim-pandoc "packadd vim-pandoc-syntax +packadd vim-javascript packadd vim-markdown -"nnoremap md :call Markdown_Preview() +let g:previm_enable_realtime = 1 nnoremap md :PrevimOpen +nnoremap pd :call Pandoc_Preview() " Pick packadd pick.vim @@ -329,8 +331,6 @@ nnoremap pb :call PickBuffer() nnoremap pt :call PickTag() let g:pick_height = 10 -" javascript -packadd vim-javascript " deoplete set pyx=3 -- 2.43.0