Yasuhiro Matsumoto wrote:
> Try following.
>
> :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.
This does not appear to be the right solution. It also affects a
command like ":n foo*" even though that should obey 'wildignore'.
Your example is about passing a literal string. But it might as well be
an expression that returns a list of file names. Again, 'wildignore'
should apply then.
Currently one would use :exe to edit a file with a name that comes from
an expression:
:exe ":e " .. "foo.bak"
Why would the user want to use backticks instead?
> 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.
This is on the todo list. I have not seen a patch yet.
--
I AM THANKFUL...
...for the mess to clean after a party because it means I have
been surrounded by friends.
/// Bram Moolenaar -- [email protected] -- 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_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