vimrc

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules

commit da5b88f20505e1d8b6e7d78040adf3a783229f5e
parent cb46a3e14a8d59a3ee75e68b18d76a3f9d96a53b
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Mon,  4 May 2026 11:16:00 -0300

package tmux: update when working wff

Diffstat:
Mftplugin/python.vim | 9+++++++--
Mftplugin/r.vim | 6+++---
Mpack/pablo/opt/tmux/plugin/tmux.vim | 4++--
3 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/ftplugin/python.vim b/ftplugin/python.vim @@ -1,7 +1,12 @@ setlocal complete-=i -setlocal formatprg=black\ -ql79\ -\ \|\ reorder-python-imports\ - -setlocal makeprg=flake8\ % +if executable('black') && executable('reorder-python-imports') + setlocal formatprg=black\ -ql79\ -\ \|\ reorder-python-imports\ - +endif + +if executable('flake8') + setlocal makeprg=flake8\ % +endif setlocal path+=src if !empty($VIRTUAL_ENV) diff --git a/ftplugin/r.vim b/ftplugin/r.vim @@ -2,8 +2,8 @@ setlocal softtabstop=2 setlocal shiftwidth=2 setlocal expandtab setlocal cindent +setlocal textwidth=80 -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)\" +setlocal formatprg=R\ -s\ --vanilla\ -e\ \"options(styler.colored_print.vertical=FALSE);styler::style_text(readLines(\\\"stdin\\\"))\" -nnoremap <silent> <LocalLeader>vs :set opfunc=TmuxSendNormal<cr>g@ -vnoremap <silent> <LocalLeader>vs :<C-u>call TmuxSendVisual(visualmode())<cr> +let g:r_syntax_folding = 1 diff --git a/pack/pablo/opt/tmux/plugin/tmux.vim b/pack/pablo/opt/tmux/plugin/tmux.vim @@ -1,6 +1,6 @@ vim9script -def g:TmuxSendKeysToMarkedVisual() +def TmuxSendKeysToMarkedVisual() var a_save = @a try silent execute 'normal! "ay' @@ -39,7 +39,7 @@ enddef vmap <silent> <localleader>tb <ScriptCmd>TmuxSetBuffer()<CR> vmap <silent> <localleader>ts <ScriptCmd>TmuxSendKeysToMarkedVisual()<CR> -nmap <silent> <localleader>ts <Cmd>set operatorfunc=TmuxSendKeysToMarkedNormal<CR>g@ +nmap <silent> <localleader>ts <Cmd>set operatorfunc=<SID>TmuxSendKeysToMarkedNormal<CR>g@ nmap <silent> <localleader>te <ScriptCmd>system('tmux send-keys -t {marked} Enter')<CR> nmap <silent> <localleader>tc <ScriptCmd>system('tmux send-keys -t {marked} <C-c>')<CR> nmap <silent> <localleader>td <ScriptCmd>system('tmux send-keys -t {marked} <C-d>')<CR>