Trying to grep an entire project tree fails with autochdir set: gvim -N -u NONE -i NONE C:/path/to/project/dir/relative/path/in/ project/somedir/file.c set autochdir cd C:/path/to/project/dir vimgrep /pattern/j relative/path/in/project/**/*.[ch]
Gives: C:\path\to\project\dir "relative\path\in\project\somedir\file.c" [New DIRECTORY] C:\path\to\project\dir "relative\path\in\project\somedir\file2.c" [New DIRECTORY] C:\path\to\project\dir "relative\path\in\project\somedir\file3.c" [New DIRECTORY] ... E480: No match: pattern But without the set autochdir, the vimgrep correctly finds all occurrences of pattern in the project. I'm about 95% sure this worked at some point in the past, because this is how I've done similar searches before. I actually found the problem while using :ProjectGrep in eclim, but discovered that even with the minimal configuration given above, Vim seems to use the wrong directory as the base for its grep search. VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Dec 9 2011 16:21:55) MS-Windows 32-bit GUI version with OLE support Included patches: 1-372 Compiled by [email protected] Huge version with GUI. Features included (+) or not (-): -- 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
