Yes put in remotes. Either make a new file, or use a sandbox remote file for all little code snippets like this.
To use it, you right click a nickname or channel window and look for the Search... menu option.
The nick menu option will search for all lines in a channel containing that nick, even other users who have typed it.
The channel menu option will ask you to enter a word or phrase to search for.