mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-21 00:38:17 +03:00
vim: simplify substitution in whole file (#1555)
This commit is contained in:
commit
83f4361136
@ -23,9 +23,9 @@
|
||||
|
||||
`<Esc>/{{search_pattern}}<Enter>`
|
||||
|
||||
- Perform a regex substitution in the whole file (from the start, `1`, to the end, `$`):
|
||||
- Perform a regex substitution in the whole file:
|
||||
|
||||
`<Esc>:1,$s/{{pattern}}/{{replacement}}/g<Enter>`
|
||||
`<Esc>:%s/{{pattern}}/{{replacement}}/g<Enter>`
|
||||
|
||||
- Save (write) the file, and quit:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user