Thanks, that's what I wanted. I've modified it slightly so it automatically opens the quick fix windows too.
Christophe -----Original Message----- From: Stahlman Family [mailto:[EMAIL PROTECTED] Sent: 21 March 2007 12:40 To: Christophe Dupre; vim@vim.org Subject: Re: Quick search using vimgrep ----- Original Message ----- From: "Christophe Dupre" <[EMAIL PROTECTED]> To: <vim@vim.org> Sent: Wednesday, March 21, 2007 5:19 AM Subject: Quick search using vimgrep > Hello, > I use the vimgrep command quite a lot to find where functions, or > variables are used in different files > I normally type something like that: > :vimgrep FunctionName *.c ..\Includes\*.h Perhaps something like this... nmap <F3> :vimgrep <cword> *.c ..\Includes\*.h<CR> Brett Stahlman > That works fine for me but typing the same line whenever I'm looking for > a different word can be quite time consuming. > Is there something I can do so that when the cursor is over a word I > could just type a key, and then the vimgrep command would run? > Thanks, > Christophe D.