commit 43e083e357211d99e37ea7945941559f15c41b89 parent 7179bac2d051972ca49ffec3d2b482248b39b465 Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe> Date: Tue, 18 Oct 2022 18:24:28 -0500 Updated ftplugin/r.vim Diffstat:
| M | ftplugin/r.vim | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/ftplugin/r.vim b/ftplugin/r.vim @@ -1,2 +1,8 @@ map <Leader>vr :call VimuxRunCommand("clear; Rscript " . bufname("%"))<CR> map <Leader>vo :call VimuxRunCommand("clear; R")<CR> +set softtabstop=2 +set shiftwidth=2 +set expandtab +set cindent + +set formatprg=Rscript\ --vanilla\ -e\ \"suppressPackageStartupMessages(library(styler));options(styler.colored_print.vertical=FALSE);con=file(\\\"stdin\\\");style_text(readLines(con),transformers=tidyverse_style());close(con)\"