There are several ways to search for text, which can be accessed from normal mode:
Forward Searching (/)
- / = allows us to perform a forward search
- n = moves to next occurrence of word
- N = moves to previous occurence of word
- // = repeats the previous search
Backward Searching (?)
- ? = allows us to perform a backward search
- n = moves to previous occurrence of word
- N = moves to next occurrence of word
- ?? = repeats the previous search
Full Word Searching
*
= searches full word in forward direction#
= searches full word in backward direction
Find and Replace Syntax
:%s/find/replace/options
Options
- g - global replace
- i - case insensitive
- c - prompt before replacing