From 96b5a864a4c35ca2843e6562a8f222627558c20a Mon Sep 17 00:00:00 2001 From: tianci Date: Sat, 31 Aug 2024 16:18:07 +0800 Subject: [PATCH 1/2] Change the command to lowercase style --- 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 cc24fe8eaa..b8bc9e7685 100644 --- a/docs/books/admin_guide/05-vi.md +++ b/docs/books/admin_guide/05-vi.md @@ -288,7 +288,7 @@ These operations are done in *command* mode. * Paste a word once or `n` times after the cursor: -++p++ or ++"n"+"p"++ +++"p"++ or ++"n"+"p"++ * Paste a word once or `n` times before the cursor: From c8a9374ce3c58afa1cd5f627512e6d53d23d1b84 Mon Sep 17 00:00:00 2001 From: tianci Date: Sat, 31 Aug 2024 18:29:02 +0800 Subject: [PATCH 2/2] Reorganize wrong content --- docs/books/admin_guide/05-vi.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/books/admin_guide/05-vi.md b/docs/books/admin_guide/05-vi.md index b8bc9e7685..ae2a46c34d 100644 --- a/docs/books/admin_guide/05-vi.md +++ b/docs/books/admin_guide/05-vi.md @@ -337,13 +337,21 @@ These operations are done in *command* mode. ++"y"+"$"++ -* Delete (cut) the text from the current line: +* Delete (cut) the contents from the cursor line to the last line of the file: -++"d"+l++ or ++"d"+g++ +++"d"+g++ -* Copy the text from the current line: +* Delete (cut) the contents from the cursor line to the last line of the screen: -++"y"+l++ or ++"y"+g++ +++"d"+l++ + +* Copy the content from the cursor line to the end of the file: + +++"y"+g++ + +* Copy the content from the cursor line to the end of the screen + +++"y"+l++ ### Cancel an action