It can return a string to replace the current word, and a Boolean
indicating whether to behave similar to :chaincommand().
For example, a git argmatcher could use this to expand aliases with more
than one word (e.g. delbranch = branch -D) and have completions work
appropriately.
It can return a string to replace the current word, and a Boolean indicating whether to behave similar to
:chaincommand()
.For example, a git argmatcher could use this to expand aliases with more than one word (e.g.
delbranch
=branch -D
) and have completions work appropriately.