The Find tool can help you find specific sequences of text within in your file.
Open the search window by clicking Search ▸ Find or pressing Ctrl+F. This will move your cursor to the start of the search window.
Type the text you wish to search for in the search window.
As you type, gedit will begin highlighting the portions of text that match what you have entered.
To scroll through the search results, do any of the following:
Click on the up or down facing arrows next to the search window
Press the up arrow or down arrow keys on your keyboard
Press Ctrl+G or Ctrl+Shift+G.
Press the Ctrl and use your mouse or touchpad's scroll feature to move up or down through the text.
To close the search window, press either Esc or Enter. Pressing Esc will return the cursor to where it was before you began your search. Pressing Enter will return the cursor to the current position in the search results.
If you highlight a portion of text with your mouse, and then press Ctrl+F, the text you've highlighted will appear in the search window.
For advanced search options, you can click on the Magnifying Glass icon in the search window, or you can right-click on any portion of the search window.
The text that you've searched for will remain highlighted by gedit, even after you have completed your search. To remove the highlight, click Search ▸ Clear Highlight, or press Ctrl+Shift+K.