r.vim (327B)
1 setlocal softtabstop=2 2 setlocal shiftwidth=2 3 setlocal expandtab 4 setlocal cindent 5 setlocal textwidth=80 6 7 setlocal formatprg=R\ -s\ --vanilla\ -e\ \"options(styler.colored_print.vertical=FALSE);styler::style_text(readLines(\\\"stdin\\\"))\" 8 setlocal keywordprg=sh\ -c\ 'Rscript\ -e\ \"help($1)\"'\ -- 9 10 let g:r_syntax_folding = 1