as I said in the title I'm talking about vim-rmarkdown, I have this in my init.vim (I'm using neovim) to compile the .rmd file to a pdf.

autocmd Filetype rmd nnoremap <F5> :w<Space><bar><Space>RMarkdown!<Space>pdf<Space>latex_engine="pdflatex"<enter>

The plugin opens the pdf on it's own but the process is not disowned so I can't leave it open and continue working in vim. I've tried several things but every time I add something behind the :RMarkdown! command it always takes it as a argument for rendering the pdf (even with <bar>), so I always end up with failed rendering. Thanks for any help!

  • 1
    Note if the the answer to this turns out to be "the plugin has to support this explicitly", I'm one of the plugin maintainers and am listening ;-) We'd be glad to support this, I just don't know how it needs to be done, so this question is quite relevant. – Caleb Mar 26 '20 at 15:48
  • @Caleb I opened a issue about this yesterday on the plugins github page and alerque said that it could be done with either job control or a shell background function. But IDK how to do any of it so... – r1amu Mar 26 '20 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.