Have the following simple function in a vim script:
function me#Tabwidth(width)
let &tabstop = a:width
let &shiftwidth = a:width
set expandtab
echom "Tab width set to " + a:width
endfunction
The function is being called like this in the vimrc file.
command -nargs=* Tabwidth :call me#Tabwidth(<f-args>)
When called by typing "Tabwidth 2" only the value of the variable is being echoed out, but not the string. What am I doing wrong?