> So basically I'm looking for a * command that would have an effect
> across files. I'm aware of :grep but I couldn't get that to recognize
> only keywords, it only does a plain grep.
Well, something 100% untested would be something like
:nnoremap <f8> :grep -r '<c-r><c-w>' *<cr>
The issue with this solution is that it "only does a plain grep" as I noted in my original mail. It will match the word
against *any* appearance of it, for example if your cursor is on the word "approx" which is a function name in your C
code then it will also match the word "approximation" in any of the comments. While the * command only matches words
which are exactly "approx" and will not match "approximation". This is the behaviour I'm looking for accross
multiple files.
Tony, vimgrep doesn't work with Vim 6. In any case is it similar to grep in the
above sense, or could it do what * is doing with only matching exact word
matches?