dotfiles

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

commit 20282c5006bc782c9836ca3458c4de50b93ad5d5
parent f7e05e9f78a1a58b7fc31895671bd6a90bf1e7fc
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Thu, 11 Apr 2019 12:40:10 +0200

Add markdown preview with pandoc

Diffstat:
Mvim/vimrc | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/vim/vimrc b/vim/vimrc @@ -43,3 +43,10 @@ Plug 'vimwiki/vimwiki' Plug 'chrisbra/csv.vim' Plug 'w0rp/ale' call plug#end() + +" markdown preview with pandoc +command! -nargs=* RunSilent + \ | execute ':silent !'.'<args>' + \ | execute ':redraw!' +nmap <Leader>pc :RunSilent pandoc -o /tmp/vim-pandoc-out.pdf %<CR> +nmap <Leader>pp :RunSilent xdg-open /tmp/vim-pandoc-out.pdf &<CR>