Commit 0f86448f authored by Alex Arnaud's avatar Alex Arnaud

Initial commit

parents
command! -nargs=* -complete=custom,Complete Bosh :call RunBosh(<f-args>)
command! -nargs=1 -complete=file BoshExec :call RunBosh('exec', <f-args>)
function! RunBosh(...)
let output = systemlist("bosh " . join(a:000, ' '))
"new
"call append(line('.'), output)
echo join(output, "\n")
endfunction
function! Complete(ArgLead, CmdLine, CursorPos)
let words = split(a:CmdLine, ' ', 1)
if len(words) <= 2
let output = system("bosh commands")
else
let output = system("bosh completions " . words[1])
endif
return output
endfunction
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment