Thursday, October 1, 2015

Re: file patterns for argument list

On 2015-10-01 13:58, Benjamin Fritz wrote:
> Today I discovered that this works to add both file.h and file.cpp
> to the arg list:
>
> :args file.*{cpp,h}
>
> But this doesn't work:
>
> :args file.{cpp,h}
>
> The second variant just adds the (non-existent) "file.{cpp,h}" file
> name (with a literal "{h,cpp}" in the name) to the arg list.

Do you experience it when you start vim with "-u NONE"?

I just tried your example and it worked fine (the stock 7.4.1-488,576
on Debian Linux), putting those two file-names in my argument list, as
reported back with ":args".

I don't know if it's an OS-specific globbing, so if you're running it
on Windows, you might see a different behavior (I just tested it on
an XP VM that I have at hand where I do see the behavior you
describe).

-tim



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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment