From 195d31a2d52fdd49905183d70899501fbaaa678f Mon Sep 17 00:00:00 2001 From: tianci li Date: Tue, 9 Aug 2022 14:04:45 +0800 Subject: [PATCH 1/6] Semantic modification --- docs/books/admin_guide/05-vi.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/books/admin_guide/05-vi.md b/docs/books/admin_guide/05-vi.md index 05042cfaea..603591f73e 100644 --- a/docs/books/admin_guide/05-vi.md +++ b/docs/books/admin_guide/05-vi.md @@ -381,11 +381,11 @@ To switch to *Ex* mode, from *command* mode, type :. `?string` -* Go to the next occurrence found: +* Find the next matching string: n -* Go to the previous occurrence found: +* Find the last matching string: N From 3672d3ec3f828cd1e95e97af3188ee9145eb8eba Mon Sep 17 00:00:00 2001 From: tianci li Date: Tue, 9 Aug 2022 14:40:21 +0800 Subject: [PATCH 2/6] update --- docs/books/admin_guide/05-vi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/books/admin_guide/05-vi.md b/docs/books/admin_guide/05-vi.md index 603591f73e..5032802419 100644 --- a/docs/books/admin_guide/05-vi.md +++ b/docs/books/admin_guide/05-vi.md @@ -411,7 +411,7 @@ Example: `/Word$` -* `.` : Search for a word with an unknown letter. +* `.` : Search for any single character except newline characters Example: From fb2dd3761f420044d0dbce05ae30ea1564924645 Mon Sep 17 00:00:00 2001 From: tianci li Date: Tue, 9 Aug 2022 15:58:08 +0800 Subject: [PATCH 3/6] Content Modification --- docs/books/admin_guide/05-vi.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/books/admin_guide/05-vi.md b/docs/books/admin_guide/05-vi.md index 5032802419..09a61f36f9 100644 --- a/docs/books/admin_guide/05-vi.md +++ b/docs/books/admin_guide/05-vi.md @@ -395,17 +395,17 @@ There are wildcards to facilitate the search in VI. Example: -`/[Ww]ord` : search _word_ and _Word_ +`/[Ww]ord` : search _word_ or _Word_ `/[1-9]word` : search _1word_, _2word_ … _`x`word_ where `x` is a number -* `^` : Search for a string starting the line. +* `^` : Search for lines that begin with a character. Example: `/^Word` -* `$` : Search for a string ending the line. +* `$` : Search for lines that end with characters. Example: @@ -417,7 +417,7 @@ Example: `/W.rd` : search _Word_, _Ward_ … -* `*` : Search for one or more characters, whatever they are. +* `*` : The number of times the previous character matches, 0 times, or any number of times. Example: From dd023775ce6d78b11876743a7ba4fae0ebf50d13 Mon Sep 17 00:00:00 2001 From: tianci li Date: Wed, 10 Aug 2022 09:24:11 +0800 Subject: [PATCH 4/6] Word correction --- docs/books/admin_guide/05-vi.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/books/admin_guide/05-vi.md b/docs/books/admin_guide/05-vi.md index 09a61f36f9..ee565c7881 100644 --- a/docs/books/admin_guide/05-vi.md +++ b/docs/books/admin_guide/05-vi.md @@ -385,7 +385,7 @@ To switch to *Ex* mode, from *command* mode, type :. n -* Find the last matching string: +* Find the previous matching string: N @@ -399,7 +399,7 @@ Example: `/[1-9]word` : search _1word_, _2word_ … _`x`word_ where `x` is a number -* `^` : Search for lines that begin with a character. +* `^` : Search for lines that begin with a characters. Example: From c7616166535d97b8478edc074e53fa3992f1d280 Mon Sep 17 00:00:00 2001 From: tianci li <86754294+jimcat8@users.noreply.github.com> Date: Wed, 10 Aug 2022 09:27:01 +0800 Subject: [PATCH 5/6] Update 05-vi.md --- docs/books/admin_guide/05-vi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/books/admin_guide/05-vi.md b/docs/books/admin_guide/05-vi.md index ee565c7881..3d1b406b4c 100644 --- a/docs/books/admin_guide/05-vi.md +++ b/docs/books/admin_guide/05-vi.md @@ -411,7 +411,7 @@ Example: `/Word$` -* `.` : Search for any single character except newline characters +* `.` : Search for any single character except newline characters. Example: From 4f70a534298328ea3d305249b8bb397a159e9a7d Mon Sep 17 00:00:00 2001 From: tianci li <86754294+jimcat8@users.noreply.github.com> Date: Wed, 10 Aug 2022 09:28:16 +0800 Subject: [PATCH 6/6] Update 05-vi.md --- docs/books/admin_guide/05-vi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/books/admin_guide/05-vi.md b/docs/books/admin_guide/05-vi.md index 3d1b406b4c..5b3105c90b 100644 --- a/docs/books/admin_guide/05-vi.md +++ b/docs/books/admin_guide/05-vi.md @@ -385,7 +385,7 @@ To switch to *Ex* mode, from *command* mode, type :. n -* Find the previous matching string: +* Find the previous matching string: N