Yes, I said what I said.
OK, with that out of the way let us get into it: when you spend a fair amount of time at the terminal, you have to get comfortable with a command line editor. At least, you should.
Vim does not come pre-loaded on many Linux distributions, however it is easy enough to install via your distros' package manager, for example:
sudo apt install vim
Debian/Ubuntu
Once installed, you can simply type 'vimtutor' at the prompt to engage in the "Vim Tutor" program that comes with the install.
vimtutor
To exit the Vim editor, all you need to do is press the 'Escape' key and then hit the colon key, ':', and then type 'q' for quit, or to quit without saving: 'q!'.
To save and quit, or write and quit: 'wq'. But...there is another: 'x'. so, ':x!' to force write and quit.
To search for text within a file, hit Escape and then a '/' and type your string...like so:
/example
And hit enter.
Besides the man pages and Vim tutor, there are many cheatsheets you can find on the interwebs to assist in your Vim journeys. Example: https://vim.rtorr.com/