Am 2014-11-10 20:09, schrieb ds26gte:
This doesn't match shell behavior of ** (for shells that have it, like
bash).
Since the behaviour of ** is not standardized and vim is no shell, that
is no
argument for or against anything.
Even if ~/**/*.ex is deemed to keep the '/', the empty instantiation
of the ** pattern would give ~//*.ex, which is equivalent to ~/*.ex,
as consecutive /'s in a path collapse into a single /, even in Vim.
Obviously, it doesn't. So simply use **.ex as a pattern which seems to
do what you
want and is even simpler. I checked with an example of
au BufReadFile ~/**.ex :echom "autocomd **.ex matched!"
and it triggered for all your files mentioned.
Make sure to also read the documentation at
:h starstar-wildcard
:h autocomd-patterns
Best,
Christian
--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.