:map command should give an error if given extraneous unused argument
As far as I can see, if I write
:map <F7> set highlight-transparency 1
then the highlight-transparency
is considered the optional argument for :set
shortcut function, and the 1
is silently dropped.
I suggest raising an error if there's an extraneous argument instead.
(or maybe do something useful with it? For example it's possible to implement :map <F7> set "highlight-transparency 1" | focus_inputbar /
to map one key to execute two shortcut functions?)