Vi IMproved, a programmer's text editor, provides several modes for different kinds of text manipulation. Pressing
i
enters edit mode.<Esc>
goes back to normal mode, which doesn't allow regular text insertion.
vim {{file}}
<Esc>i
P
):<Esc>{{yy|dd}}
<Esc>u
n
/N
to go to next/previous match):<Esc>/{{search_pattern}}<Enter>
<Esc>:%s/{{pattern}}/{{replacement}}/g<Enter>
<Esc>:wq<Enter>
<Esc>:q!<Enter>