I'd like a Build
command that starts a build independent of what build system is used.
command! -nargs=* Build :Makeshift<Bar>MakeshiftBuild <args>
gives me
E488: Trailing characters
Either one can be mapped and works, but the two of them produce the error.
I tried -bar
on my map. I cannot change Makeshift to use it.
The following works:
function! s:BuildFun(what2build)
execute 'Makeshift'
execute 'MakeshiftBuild '.a:what2build
endfunction
command! -nargs=* Build :call s:BuildFun(<q-args>)
Can someone clarify, why the one-liner does not work or how to make it work. Just to gain insight.
johnsyweb/vim-makeshift
or do you use a different one?Makeshift
andMakeshiftBuild
commands. Now I see the problem. For custom commands to be chainable via|
, they need the-bar
attribute.Makeshift
is not defined with-bar
.