Add F4 shortcut to compile with handout template in vim

This commit is contained in:
coolneng 2019-05-09 16:59:01 +02:00
parent 7c3b42ad6f
commit 60ccea52c2
1 changed files with 4 additions and 3 deletions

View File

@ -37,9 +37,10 @@ let g:markdown_fenced_languages = ['cpp', 'python', 'java']
let g:vim_markdown_math=1 let g:vim_markdown_math=1
"" Pandoc "" Pandoc
autocmd FileType markdown nnoremap <silent> <F3> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf --from markdown --template eisvogel --listings &<cr> autocmd FileType markdown nnoremap <silent> <F3> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf --from markdown --template eisvogel --listings &<cr>
autocmd FileType markdown nnoremap <silent> <F4> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf -t beamer -V theme:metropolis --listings &<cr> autocmd FileType markdown nnoremap <silent> <F4> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf --from markdown --template handout &<cr>
autocmd FileType markdown nnoremap <silent> <F5> :<c-u>!zathura %:p:r:S.pdf &<cr> autocmd FileType markdown nnoremap <silent> <F5> :<c-u>!pandoc %:p:S -o %:p:r:S.pdf -t beamer -V theme:metropolis --listings &<cr>
autocmd FileType markdown nnoremap <silent> <F6> :<c-u>!rm %:p:r:S.pdf &<cr> autocmd FileType markdown nnoremap <silent> <F6> :<c-u>!zathura %:p:r:S.pdf &<cr>
autocmd FileType markdown nnoremap <silent> <F7> :<c-u>!rm %:p:r:S.pdf &<cr>
"" Snippets "" Snippets
let g:UltiSnipsExpandTrigger = '<tab>' let g:UltiSnipsExpandTrigger = '<tab>'
let g:UltiSnipsJumpForwardTrigger = '<tab>' let g:UltiSnipsJumpForwardTrigger = '<tab>'