I have encountered very strange problem using vimgrep command. I try to find a match in all the files in all subdirs of a specified directory:
:vimgrep /word_I_search/ path\to\my\dir\**\*
(there are backslashes in path because I am on Windows). Command reports:
E480: No match: word_I_search
But I know there are matches! And if I do not search in subdirs or if I start searching one level higher everything is ok. Following commands successfully find what I want:
:vimgrep /word_I_search/ path\to\my\dir\*
:vimgrep /word_I_search/ path\to\my\**\*
I have never encountered this problem on my Linux machine and do not know where to start troubleshooting it. Any ideas? Please help.
UPDATE:
command works as expected if I use less backslashes. Following commands work as expected:
:vimgrep /word_I_search/ path/to/my/dir/**/*
:vimgrep /word_I_search/ path\to\my\dir\**/*