Tuesday, March 31, 2015

Re: How to get to the helppage of shiftwidth in options.txt?

On 2015-03-31, Peng Yu wrote:
> On Sun, Mar 29, 2015 at 8:40 PM, Tim Chase <vim@tim.thechases.com> 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?

Isn't that what Tim already explained above with

:help list<C-D>

? Take a look at

:help 'wildmode'

for ways to customize the results. You might try

:set wildmode=longest,list

which is what I use.

Regards,
Gary

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment