commit 9f54e364cba9f4aae981e92b39db8eb12b53bc72
parent d97553c0cd42983796d3318a6e7ad451c46cec24
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date: Fri, 29 Nov 2024 02:40:13 -0500
ftplugin/{r,rmd}: change set to setlocal
Diffstat:
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/ftplugin/r.vim b/ftplugin/r.vim
@@ -1,9 +1,9 @@
-set softtabstop=2
-set shiftwidth=2
-set expandtab
-set cindent
+setlocal softtabstop=2
+setlocal shiftwidth=2
+setlocal expandtab
+setlocal 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)\"
+setlocal 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)\"
nnoremap <silent> <LocalLeader>vs :set opfunc=TmuxSendNormal<cr>g@
vnoremap <silent> <LocalLeader>vs :<C-u>call TmuxSendVisual(visualmode())<cr>
diff --git a/ftplugin/rmd.vim b/ftplugin/rmd.vim
@@ -1,8 +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
+setlocal softtabstop=2
+setlocal shiftwidth=2
+setlocal expandtab
let rmd_dynamic_comments = 0
function! rmd#Format()
@@ -14,4 +14,4 @@ else
endif
endfunction
-set formatexpr=rmd#Format()
+setlocal formatexpr=rmd#Format()