various vim plugin tweaks
This commit is contained in:
@ -2,12 +2,12 @@
|
||||
" 31.utility-execute.vim wrapper for scwrypts-specific execution
|
||||
"
|
||||
|
||||
function ExecuteScwrypt(scwrypt = '', args = '', output = '', syntax = 'bash')
|
||||
function ExecuteScwrypt(scwrypt = '', args = '', output = '', syntax = 'bash', loglevel = '0')
|
||||
let b:scwryptsPrevArgs = a:args
|
||||
call ExecuteCommand('scwrypts -n ' . a:scwrypt . ' -- ' . a:args, a:output, 'shell', a:syntax)
|
||||
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')
|
||||
call ExecuteScwrypt(a:scwrypt, a:args . input('scwrypts ' . a:scwrypt . '--' . a:args), a:output, a:syntax)
|
||||
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
|
||||
|
Reference in New Issue
Block a user