dotwryn/vim/rc.d/32.utility-scwrypts.vim
2024-06-26 18:37:28 -06:00

14 lines
624 B
VimL

"
" 31.utility-execute.vim wrapper for scwrypts-specific execution
"
function ExecuteScwrypt(scwrypt = '', args = '', output = '', syntax = 'bash', loglevel = '0')
let b:scwryptsPrevArgs = a:args
call ExecuteCommand('scwrypts --log-level ' . a:loglevel . ' ' . a:scwrypt . ' -- ' . a:args, a:output, 'shell', a:syntax)
echom 'scwrypts -n ' . a:scwrypt . '--' . a:args
endfunction
function ExecuteScwryptInteractive(scwrypt = '', args = '', output = '', syntax = 'bash', loglevel = '4')
call ExecuteScwrypt(a:scwrypt, a:args . input('scwrypts ' . a:scwrypt . '--' . a:args), a:output, a:syntax, a:loglevel)
endfunction