:set wildignore+=*.bak
:e `="foo.bak"`
E480: No match: `="foo.bak"`
I think, this should be matched to wildignore. Also :e `ls foo.c`.
https://gist.github.com/2936402
Bram, please check.
BTW, fnameescape() have bugs that wasn't fixed yet on windows.
https://groups.google.com/forum/?fromgroups#!msg/vim_dev/sTfkV2vcBoI/CckA_gxvYQsJ
On windows, we can't open file or directory that contains !, [][] in filename.
Sorry typo.
I think, this should NOT be matched to wildignore.
My change doesn't break behavior of expanding. Just fix(not change) of applying wildignore. When backtick is expanded as filenames, it should be that you wanted. I think backtick is not completion, so wildignore shouldn't affect to backtick. I want to separate expanding and completion. You are talking about completion. I agree that completion should be applied wildignore. But user-own expanding shouldn't be applied.
I don't think, that backtick is applied to wildignore doesn't have any merit to users.
When user want to use backtick, they don't expected the behavior.
> E480: No match: `='*'`
> Shouldn't the backtick-expansion result always be taken literally? It looks like
> it mistakenly performs a glob here!
My fix will solve this.
> PS: Please bottom-post on this list.
I sent e-mail from my handy phone via gmail. So I couldn't change that order. Sorry.
Really? :help `= says following:
*`=*
You can have the backticks expanded as a Vim expression, instead of an
external command, by using the syntax `={expr}` e.g.: >
:e `=tempname()`
The expression can contain just about anything, thus this can also be used to
avoid the special meaning of '"', '|', '%' and '#'. Names are to be separated
with line breaks. When the result is a |List| then each item is used as a
https://gist.github.com/mattn/5079965
How about this?