From 91a35ee54b3a1669ad66e5602a215f37231d0fd7 Mon Sep 17 00:00:00 2001 From: ltxlouis Date: Fri, 16 Jul 2021 16:28:37 +0800 Subject: [PATCH] missing 's' --- ch12_search_and_substitute.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch12_search_and_substitute.md b/ch12_search_and_substitute.md index e098759..4408a2a 100644 --- a/ch12_search_and_substitute.md +++ b/ch12_search_and_substitute.md @@ -262,7 +262,7 @@ To substitute the "let" into "const" on lines three to five, you can do: Here are some range variations you can pass: -- `:,3/let/const/` - if nothing is given before the comma, it represents the current line. Substitute from current line to line 3. +- `:,3s/let/const/` - if nothing is given before the comma, it represents the current line. Substitute from current line to line 3. - `:1,s/let/const/` - if nothing is given after the comma, it also represents the current line. Substitute from line 1 to current line. - `:3s/let/const/` - if only one value is given as range (no comma), it does substitution on that line only.