Skip to content

Instantly share code, notes, and snippets.

@mkelley33
Created November 1, 2010 16:32
Show Gist options
  • Save mkelley33/658465 to your computer and use it in GitHub Desktop.
Save mkelley33/658465 to your computer and use it in GitHub Desktop.
A one-two combo for searching in files, and then going to match at a supplied line-number.
grep . -RHn --include="tests.py" -e "MyTestCase"
mvim some_django_app/tests.py +1329
@mkelley33
Copy link
Author

*I did this on MacVim using the Terminal.app, but probably works on Linux with GVim
*This may not be news to some of the veterans here :)

I used this command to grep inside a file, and then go to the
line number(s) where the match(es) occurred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment