+ F9 now able to save markdown to pdf using pandoc

This commit is contained in:
ziro 2020-11-01 13:53:11 +07:00
parent 769e108b47
commit bb245df756
2 changed files with 6 additions and 1 deletions

View file

@ -37,6 +37,10 @@ autocmd FileType sh imap <buffer> <F9> <esc> :w<CR>:vs<CR>:ter sh "%"<CR>
autocmd FileType c map <buffer> <F9> :w<CR>:vs<CR>:ter gcc "%" -o %< && ./%< && read<CR>
autocmd FileType c imap <buffer> <F9> <esc> :w<CR>:vs<CR>:ter gcc "%" -o %< && ./%< && read<CR>
" pandoc (markdown to pdf)
autocmd FileType markdown map <buffer> <F9> :w<CR>:!pandoc -i "%" -o "%:r.pdf"<CR>
autocmd FileType markdown imap <buffer> <F9> <esc> :w<CR>:!pandoc -i "%" -o "%:r.pdf"<CR>
" ----- Automatically Render PDF
autocmd FileType plaintex command! -nargs=0 Lw w !pdflatex % > /dev/null
autocmd FileType tex command! -nargs=0 Lw w !pdflatex % > /dev/null