- To search for a piece of text type
/text<cr>in normal mode.
nto go to the next occurence
Nto go to the previous occurence
set incsearchto start searching as soon as you start typing the search phrase.
\>match the start and end positions of a word so
/\<text\>will find only exactly text and not when it's part of a longer word.
/\dwill seach for a digit.
/\d\+will search for multiple digits.