glts <[email protected]> wrote:
> I believe this is a typo in spell.c:
>
> diff -r 2ee5e568766c src/spell.c
> --- a/src/spell.c Thu Aug 22 14:14:27 2013 +0200
> +++ b/src/spell.c Sat Aug 24 17:08:07 2013 +0200
> @@ -10135,7 +10135,7 @@
> }
>
> /*
> - * "z?": Find badly spelled word under or after the cursor.
> + * "z=": Find badly spelled word under or after the cursor.
> * Give suggestions for the properly spelled word.
> * In Visual mode use the highlighted word as the bad word.
> * When "count" is non-zero use that suggestion.
I see z? being mentionned in ":help E149":
=== BEGIN QUOTE ===
*{subject}* *E149* *E661*
:h[elp] {subject} Like ":help", additionally jump to the tag {subject}.
{subject} can include wildcards like "*", "?" and
"[a-z]":
:help z? jump to help for any "z" command
=== END QUOTE ===
Strange. Doing ":help z?" gives me an error:
E149: Sorry, no help for z?
Is this a bug in Vim or is it just a bad example in the doc?
I also see z? in ex_cmds.c at lines 5928 & 5935
but I can't make sense of it either since there is no
such z? command in Vim as far as I know:
5910 /*
5911 * Find all help tags matching "arg", sort them and return in
matches[], with
5912 * the number of matches in num_matches.
5913 * The matches will be sorted with a "best" match algorithm.
5914 * When "keep_lang" is TRUE try keeping the language of the current buffer.
5915 */
5916 int
5917 find_help_tags(arg, num_matches, matches, keep_lang)
5918 char_u *arg;
5919 int *num_matches;
5920 char_u ***matches;
5921 int keep_lang;
5922 {
5923 char_u *s, *d;
5924 int i;
5925 static char *(mtable[]) = {"*", "g*", "[*", "]*", ":*",
5926 "/*", "/\\*", "\"*", "**",
5927 "cpo-*", "/\\(\\)", "/\\%(\\)",
5928 "?", ":?", "?<CR>", "g?", "g?g?",
"g??", "z?",
5929 "/\\?", "/\\z(\\)", "\\=", ":s\\=",
5930 "[count]", "[quotex]", "[range]",
5931 "[pattern]", "\\|", "\\%$"};
5932 static char *(rtable[]) = {"star", "gstar", "[star", "]star", ":star",
5933 "/star", "/\\\\star", "quotestar",
"starstar",
5934 "cpo-star", "/\\\\(\\\\)", "/\\\\%(\\\\)",
5935 "?", ":?", "?<CR>", "g?", "g?g?",
"g??", "z?",
5936 "/\\\\?", "/\\\\z(\\\\)", "\\\\=",
":s\\\\=",
5937 "\\[count]", "\\[quotex]", "\\[range]",
5938 "\\[pattern]", "\\\\bar", "/\\\\%\\$"};
Regards
Dominique
--
--
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].
For more options, visit https://groups.google.com/groups/opt_out.