Maybe there are a lot of people who are not willing to use the CLI vi/vim to write things, but when you really get used to it, its efficiency is immeasurable. 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
 
 
 Vi/vim Keyboard Diagram-----Another desktop background good picture