Replace LINE
:[range]s/{pattern}/{str}/[flags]
:s/old/new |
Replace first |
:s/old/new/g |
Replace all |
:s/\vold/new/g |
Replace all with regex |
:s/old/new/gc |
replace all (Confirm) |
:s/old/new/i |
Ignore case replace first |
:2,6s/old/new/g |
Replace between lines 2 -6 |
Comments