The Last Search Pattern Register


We discussed the details of searching for text in the searching chapter.

Each time a search is executed, the search pattern is stored in the "last search pattern" register, "/.

Behind the scenes, this is the mechanism through which Vim implements n and N to repeat searches.