FG
💻 Software

When using grep from VIM, how to jump to results?

Fresh5 days ago
Mar 15, 202615543 views
Confidence Score0%
0%

Problem

When using the grep plugin to VIM, I can search the current directory for all occurrences of a string within a set of files, like this: This outputs something like this: If I press enter, it just takes me back to my editor. What I really want to do is be able to open up one of those files and jump …

Error Output

:grep Ryan *.txt

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: When using grep from VIM, how to jump to results?

Low Risk

When you press ENTER, you should be looking at line 3 of file1.txt. To jump to the next match, execute ; to jump to the previous match, execute . Executing will open a window containing the list of matches. Move the cursor to the desired match and p…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment