I apologize in advanced for what appears to be such a simple question.
I have a sample command defined as follows:
command! -nargs=+ Exmpl call Example(<f-args>)
function! Example(name)
echo a:name
endfunc
It is invoked as follows:
Exmpl 'hello'
but it seems to literally interpret arguments given without parsing. So:
let hello = 'world'
Exmpl hello
Does not print world, as expected.
This is clearly something obvious I can't find in the literature. I've tried adding a variety of escape characters like &, but the subsequent arguments are always treated as bare words.
How can I use variables in custom Vim commands?
:debugto see what's really executed ->:debug Exmpl hello+s+ ENTER +s+ ENTER ...