Show line Numbers |
: Set num |
cancel line number |
|
open color |
:syntax on |
off color |
|
find |
/ Find content Look down n next N previous |
replace /p> |
:1,10s/old/new/g Span style= "font-family: ' New song body ';" > replace 1 to 10 all old Span style= "font-family: ' New song body ';" > new |
:%s/old/new/g replace the entire file. Old to be New |
: 1,5s/^/#/g Notes 1 to 5 rows |
: 1,5s/^#//g Cancel comments from 1 to 5 lines |
: 1,5s/^/\|\|/g 1 to the 5 Line header plus | | |
:1,5s/^\|\|//g 1 to 5 line Cancel the beginning of Span style= "font-family: ' Times New Roman ';" >|| |
:r /strong> |
:r! command write the command result to the line where the cursor is located |
:help /strong> |
:help command find command help |
:q /strong> |
exit |
:q! |
forced exit |
:wq /strong> |
save exit |
:wq! |
Don't save exit |
zz /strong> |
save exit |
ZQ |
Do not save exit |
This article is from the "13091780" blog, please be sure to keep this source http://13101780.blog.51cto.com/13091780/1962176
Vim shortcut key package (ii)