The following picture, a look to understand, from now on, learning becomes no longer difficult!
Fill in the note:
There is no search and replace in the figure, which should be used below.
Top-down lookup operations/word lowercase n and N
Bottom-up lookup operations? Word lowercase N and N
Normal Replace operation: S/old/new
The current line is matched and replaced, and the command replaces all of the first matching characters in the current line with all of the substitution operations: s/old/new/g
The current row replaces all matching strings in the row area for substitution operations: #, #s/old/new/g
Replace operation throughout the file:%s/old/new/g
Commands for replacing operations throughout the document use the replacement confirmation function: s/old/new/c:s/old/new/gc:#, #s/OLD/NEW/GC:%S/OLD/NEW/GC
Linux Editor vim keyboard detailed