commit a0d5eeff52fe9bb687672e63ff69ddf7241ec02e parent 58ba1d065f4fcd71b038abdbf7d76f083878081f Author: Alex Balgavy <alex@balgavy.eu> Date: Tue, 1 Mar 2022 17:04:35 +0100 vim: don't automatically open pdf on markdown compilation Diffstat:
M | vim/after/ftplugin/markdown.vim | | | 2 | +- |
M | vim/compiler/markdown.vim | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/vim/after/ftplugin/markdown.vim b/vim/after/ftplugin/markdown.vim @@ -15,7 +15,7 @@ inoremap <buffer> : :<c-g>u inoremap <buffer> ; ;<c-g>u inoremap <buffer> - -<c-g>u -nnoremap <buffer> <leader><CR> :silent !open "%<.pdf"<CR>:redraw!<CR> +nnoremap <buffer> <leader><CR> :silent !open %:p:r:S.pdf<CR>:redraw!<CR> nnoremap <buffer> <leader>` :<C-u>EvalBlock<CR> nmap <buffer> <leader>ce <Plug>LitMdExecPrevBlock diff --git a/vim/compiler/markdown.vim b/vim/compiler/markdown.vim @@ -6,4 +6,4 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal command -nargs=* CompilerSet setlocal <args> endif " potentially call with --citeproc flag -CompilerSet makeprg=pandoc\ %:p:S\ -f\ markdown\ --citeproc\ -o\ %:p:r:S.pdf\ \&\&\ open\ -g\ %:p:r:S.pdf +CompilerSet makeprg=pandoc\ %:p:S\ -f\ markdown\ --citeproc\ -o\ %:p:r:S.pdf