R markdown vimrc

This commit is contained in:
Tobias Manske 2018-05-04 16:41:58 +02:00
parent 831eb3efc9
commit 7cb2945ef1
No known key found for this signature in database
GPG Key ID: 978D99F12D4E041F

View File

@ -46,8 +46,17 @@ endfunction
autocmd WinEnter * call ForceResizeNetrw()
" autocmd VimEnter * Vex
autocmd BufNew * call ForceResizeNetrw()
" R Markdown
autocmd BufNewFile,BufReadPost *.Rmd call Rmarkdown()
autocmd BufNewFile,BufReadPost *.rmd call Rmarkdown()
function Rmarkdown()
set filetype=markdown
let g:markdown_syntax_conceal = 0
let g:markdown_fenced_languages = ['r', 'python', 'html', 'sql', 'bash=sh']
endfunction
" Transparency
hi Normal guibg=NONE ctermbg=NONE