On Sun, Mar 29, 2015 at 8:40 PM, Tim Chase <[email protected]> wrote: > On 2015-03-29 20:22, Peng Yu wrote: >> On Sun, Mar 29, 2015 at 5:52 PM, Tim Chase wrote: >> > :help list<C-D> >> >> Is there a way to somehow print the potential matches in the >> command to stdout. >> >> I am able to get vim print some arbitrary text. But I can not get >> the above printed to the command line. >> >> vim -T dumb -c echo\ \"Hello\ World\!\" -c q > > Not that I know of. If I aspired to do something like that, I'd start > by using :helpgrep to find the matches of interest: > > :helpgrep \*[#-)!+-~]\+list[#-)!+-~]\+\* > > and then access the quick-fix window with ":copen", extracting the > matching contents.
In bash, there is `compgen`. So, it might make sense to add something similar to vim as well? -- Regards, Peng -- -- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
