Friday, September 3, 2010

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

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?

Thanks,
Brett Stahlman


--
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:

Post a Comment