I use VIM 7.4. When I want to search some text in my project, i use following command:
:vimgrep /pattern/j *.c *.h
Then I use
:cw command to open quickfix list for getting search results.
Here is my problem. Sometimes quickfix displays something like:
main.c|71 col 5| u8 pattern = 0;
It's okay. But sometimes it displays full path:
Users\user\dir1\dir2\etc\etc\etc\project\main.c|71 col 5| u8 pattern = 0;
And it becomes impossible to use quickfix comfortably because file path "ate" the whole horizontal space.
What can I do to get rid of full paths in quickfix list? What alternatives could you recommend for "in-project" search?