diff --git a/pages/common/vim.md b/pages/common/vim.md index ba1d4f445..9ca4c24aa 100644 --- a/pages/common/vim.md +++ b/pages/common/vim.md @@ -23,9 +23,9 @@ `/{{search_pattern}}` -- Perform a regex substitution in the whole file (from the start, `1`, to the end, `$`): +- Perform a regex substitution in the whole file: -`:1,$s/{{pattern}}/{{replacement}}/g` +`:%s/{{pattern}}/{{replacement}}/g` - Save (write) the file, and quit: