fvi — Find and Edit With VI
FVI takes a pattern and a list of files. It then searches for the pattern in those files and then opens only those files that contain the pattern in your VI editor. Once the files are open, you can use ‘n’ to take you to the next instance of the pattern in the current file, and ‘cntl-n’ to take you to the first instance of the pattern in the next file. The editor is started in ‘autowrite’ mode, so any changes you made to the file are automatically saved when you move to the next file.
You can find the latest version of the source code on Github.