Sunday, April 3, 2011

basic help with grep in vim 7.3

I'm bamboozled about vim's internal grep.

I'm looking for all files that contain the pattern "pattern" in the current directory (is there a way to do a recursive search?) so I type:
:vimgrep!/pattern/gj *.*

and vim says:
(1 of 4) Then vim shows me the line that contains the pattern
though I can't figure out what the gj does without it I only see the first file

How do I move on to the second, third, and fourth files?

tia,
--Dan




--
You received this message from the "vim_use" 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

No comments: