On Sun, Mar 29, 2015 at 5:52 PM, Tim Chase <vim@tim.thechases.com> wrote:
> On 2015-03-29 15:26, Peng Yu wrote:
>> > > When I ":help shiftwidth", I get to eval.txt. But I'd like to
>> > > get to options.txt. How to do so? Thanks.
>> >
>> > :help 'shiftwidth'
>>
>> What is the difference between with the single quote and without
>> the single quote? Where is this difference documented?
>
> By convention, Vim's settings are targeted in the help by putting
> single-quotes around them. If they're unique, you can find them in
> the help without the quotes, as Vim does a best-guess matching for
> substrings. Thus if you do something like
>
> :help formatexpr
>
> it will take you to the same place as
>
> :help 'formatexpr'
>
> However, as you discovered, if you leave off the single-quotes and
> some other target is found, it will take you there instead. E.g.
>
> :help 'list' " takes you to the help on the 'list' setting
> vs
> :help list " takes you to the help on ":list"
>
> So generally, if you want to find an option/setting, make sure to
> include the single-quote. The conventions are listed at
>
> :help help-context
>
> which is visible right from the first page of just typing
>
> :help
>
> You can also hit control+D to have Vim show you the potential matches
> such as
>
> :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
> which shows that there are Ex commands, settings, functions,
> build-time options, variables, and data-types all containing the
> search-term "list".
>
> -tim
>
>
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment