mirror of https://github.com/CrimsonTome/tldr.git
vim: add s for substitution
parent
37fa82919b
commit
c4a0fbd89e
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
- Perform a regex substitution in the whole file (from the start to the end(% holds the file name)):
|
- Perform a regex substitution in the whole file (from the start to the end(% holds the file name)):
|
||||||
|
|
||||||
`<Esc>:%/{{pattern}}/{{replacement}}/g<Enter>`
|
`<Esc>:%s/{{pattern}}/{{replacement}}/g<Enter>`
|
||||||
|
|
||||||
- Save (write) the file, and quit:
|
- Save (write) the file, and quit:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue