[nvim] Improve compilation filetype target
Allows compilation using pandoc to happen for markdown, as well as rmarkdown files.
This commit is contained in:
parent
14f6bee7a1
commit
552a56cc33
1 changed files with 2 additions and 4 deletions
|
@ -148,8 +148,6 @@ augroup END
|
||||||
au! BufRead,BufNewFile *.markdown set filetype=markdown
|
au! BufRead,BufNewFile *.markdown set filetype=markdown
|
||||||
au! BufRead,BufNewFile *.md set filetype=markdown
|
au! BufRead,BufNewFile *.md set filetype=markdown
|
||||||
au! BufRead,BufNewFile *.mkd set filetype=markdown
|
au! BufRead,BufNewFile *.mkd set filetype=markdown
|
||||||
au! BufRead,BufNewFile *.rmd set filetype=markdown
|
|
||||||
au! BufRead,BufNewFile *.Rmd set filetype=markdown
|
|
||||||
" automatically enables markdown plugins for md & txt files
|
" automatically enables markdown plugins for md & txt files
|
||||||
function! Prose()
|
function! Prose()
|
||||||
call plug#load('vim-pencil')
|
call plug#load('vim-pencil')
|
||||||
|
@ -603,8 +601,8 @@ let g:nv_fzf_binds = [
|
||||||
" installed (it is a bit more brittle)
|
" installed (it is a bit more brittle)
|
||||||
" autocmd FileType rmd noremap <F10> :!echo<space>"require(rmarkdown);<space>render('<c-r>%')"<space>\|<space>R<space>--vanilla<enter>
|
" autocmd FileType rmd noremap <F10> :!echo<space>"require(rmarkdown);<space>render('<c-r>%')"<space>\|<space>R<space>--vanilla<enter>
|
||||||
" Compile with rmarkdown
|
" Compile with rmarkdown
|
||||||
autocmd FileType markdown noremap <leader>c :RMarkdown pdf<cr>
|
autocmd FileType markdown,rmarkdown noremap <leader>c :RMarkdown pdf<cr>
|
||||||
autocmd FileType markdown noremap <leader>C :RMarkdown! pdf<cr>
|
autocmd FileType markdown,rmarkdown noremap <leader>C :RMarkdown! pdf<cr>
|
||||||
|
|
||||||
function! SearchWiki()
|
function! SearchWiki()
|
||||||
let l:curpath=getcwd()
|
let l:curpath=getcwd()
|
||||||
|
|
Loading…
Reference in a new issue