Bram Moolenaar wrote:
Since we are talking about completion, there is only one word to be
completed "toLowerCase". That it can have different arguments doesn't
matter for inserting "toLowerCase". You could have a function name ten
times and need to type CTRL-N ten times to get to another word.
I suggest you put alternate function arguments together with one word.
Thus "toLowerCase" would have a menu item and info that shows both
possible forms of arguments.
I think it would be useful, if info window would allow more than one
"item" of information associated with a word completion. And it would
be possible to switch all of the info items with some additional pair of
keys. Visual Studio uses such a scheme (though it uses tool tips
instead of an info window) and some other IDEs.
It would be cool, if such possibility would not be coded inside Vim
core, but if it would be possible to implement it using scripts, by
means of some events, that would be fired during completion process, for
example. This way, it is possible that script authors would invent some
other ways of representation of completion information.