Find the answer to your Linux question:
Results 1 to 2 of 2
I am using gvim on Windows. When I use grep to search for some string (eg: grep ASSERT *.c), only the first result is being displayed on the screen. I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2006
    Location
    san diego
    Posts
    3

    Grep in gvim


    I am using gvim on Windows. When I use grep to search for some string (eg: grep ASSERT *.c), only the first result is being displayed on the screen. I have to do :cnext to go to the next match. Is there a way through which I can see all the grep results on the screen and jump to the match I am interested in?

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,878
    Is there a reason you're using grep? Just type '/[search_expression]' and it'll take you to the first match, then press 'n' until you hit the match you want. gvim in Windows works almost identically to the vim in Linux.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •