If you haven’t tried out Nano editior in linux, please give it a go! It’s brilliant.
Here’s how to search within the file:
Ctrl + W is the shortcut for searching. After entering the search term, press Enter. To repeat the search, issue Alt + W. In this menu, you can select earlier searches using the arrow up/ down keys.
To toggle backwards searching, you need to press Alt + B in the search dialog.
For more shortcuts, press F1