Sunday, June 2, 2019

Re: :help :check inconsistent with :check

John Little wrote:

> On Sunday, June 2, 2019 at 1:54:53 PM UTC+12, Tony Mechelynck wrote:
> > for this, line 827 of doc/tagsrch.txt would have had to be:
> > *che* *chec* *check* *checkp* *checkpa* *checkpat* *checkpath*
> > instead of just the first and last ones of these; similarly for _all_
> > other ex-commands, which I believe would have made the doc/tags file
> > much bigger.
>
> Extra tags would only be needed where there's ambiguity. I compiled a
> list; the middle column is what you get if you type the given at the :
> command prompt, and the third column is the topic you get if you ask
> for help for the given:

Thanks, that is very useful. I don't know how you generated this, but I
assume these are the useful ones.

>
> given | : | :help :
> --------+--------------+-------------
> arg | args | arga
> bre | brewind | break
> cab | cabbrev | cabclear
> cadd | caddbuffer | caddexpr
> chec | checkpath | checktime
> cne | cnext | cnewer
> cnor | cnoremap | cnoreabbrev
> cun | cunmap | cunabbrev
> diff | diffupdate | diffget
> doaut | doautocmd | doautoall
> end | endif | endfunction
> folddo | folddopen | folddoc
> inor | inoremap | inoreabbrev
> keep | keepmarks | keepalt
> ladd | laddbuffer | laddexpr

This one is the wrong way around, :ladd stands for :laddexpr.

> lfi | lfile | lfirst
> lge | lgetfile | lgetbuffer
> lma | lmap | lmake
> lock | lockmarks | lockvar
> mkvi | mkvimrc | mkview
> sfi | sfind | sfirst
> snore | snoremap | snoremenu
> ver | version | verbose
>
> One or two extra tags for each of these is not going to significantly
> add to vim's 10,000 or so.
>
> > :help :check<Tab> (with 'wildmenu' on) or :help :check<Ctrl-D> would
> > have shown you all helptags beginning with :check
>
> How would I have known to do that, when I did not know that there
> might be another command starting with "check"? I use the help when I
> don't know stuff, that's the point of it.

--
Ed's Radiator Shop: The Best Place in Town to Take a Leak.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/201906021148.x52BmXEI007959%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

No comments: