Hi,
On Sat, Mar 28, 2020 at 5:35 PM David Barnett <[email protected]>
wrote:
> I expected that getcompletion({pat}, 'command') would be able to complete
> the 2nd word of a command, but it doesn't seem to return any results. For
> instance:
>
> echo getcompletion('set s', 'command')
>
> returns [] instead of results I would expect like ['set scroll', 'set
> scrollbind', 'set scrolljump', 'set scrolloff', …].
>
> Is this a bug, or am I using it wrong?
>
>
>
You need to use getcompletion('s', 'option') to return the list of options
starting
with 's'. The 'command' option for getcompletion() is used to get the list
of
ex commands start with the specified prefix.
- Yegappan
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAAW7x7mnMHAYZjeTcmzZP_2SitawrMr54PVCGEzv_0GB%2BDjt7A%40mail.gmail.com.