Saturday, September 18, 2010

Re: Possible bug with wildcard expansion patterns on command line: question mark (match any single character) metacharacter doesn't seem to work

Brett Stahlman wrote:

> According to the help on cmdline-completion...
>
> The 'wildchar' option defaults to <Tab> (CTRL-E when in Vi compatible
> mode; in a previous version <Esc> was used). In the pattern standard
> wildcards '*' and '?' are accepted. '*' matches any string, '?' matches
> exactly one character.
>
> The ? doesn't work for me. If I do...
>
> set gui*<Tab>
>
> ...I get option completion as expected. If, on the other hand, I do...
>
> set gui?ptions<Tab>
>
> ...Vim doesn't attempt any completion, but simply inserts a literal tab
> (^I) at the cursor position on the command line. Shouldn't I get a
> completion in the second case also?

The ? only works in file names. I'll change the help text.

--
hundred-and-one symptoms of being an internet addict:
164. You got out to buy software, instead of going out for a beer.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.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

No comments: