dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 377824c6ebf49021f79d5251114cee137056c085
parent 5bb77f0c2e731cf856cfa524c372781661aa4d6c
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Thu,  2 May 2019 13:37:12 +0200

Do not open pdfs from pandoc on markdown file startup

Diffstat:
Mvim/vimrc | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vim/vimrc b/vim/vimrc @@ -48,7 +48,8 @@ command! -nargs=* RunSilent \ | execute ':redraw!' " markdown preview with pandoc -autocmd BufEnter *.markdown,*.md,*.wiki :RunSilent pandoc -f markdown -o /tmp/vim-pandoc-out.pdf % && mupdf /tmp/vim-pandoc-out.pdf & +nmap <Leader>pc :RunSilent pandoc -f markdown -o /tmp/vim-pandoc-out.pdf % &<CR> +nmap <Leader>pp :RunSilent mupdf /tmp/vim-pandoc-out.pdf &<CR> autocmd BufWritePost *.markdown,*.md,*.wiki :RunSilent pandoc -f markdown -o /tmp/vim-pandoc-out.pdf % && pkill -1 mupdf " vim-plug section