mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Update init.vim
This commit is contained in:
parent
cb8a1586e9
commit
4632d82a41
@ -76,6 +76,9 @@ set clipboard+=unnamedplus
|
||||
|
||||
" Compile document, be it groff/LaTeX/markdown/etc.
|
||||
map <leader>c :w! \| !compiler <c-r>%<CR>
|
||||
|
||||
" Compile/Render R Markdown files
|
||||
autocmd Filetype rmd map <F5> :!echo<space>"require(rmarkdown);<space>render('<c-r>%')"<space>\|<space>R<space>--vanilla<enter>
|
||||
|
||||
" Open corresponding .pdf/.html or preview
|
||||
map <leader>p :!opout <c-r>%<CR><CR>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user