From: Christian Brabandt Date: Thu, 18 Dec 2025 20:22:06 +0000 (+0100) Subject: runtime(tutor): Chapter 2: consistently use upper case letter, fix typo after 1e3e1ba... X-Git-Tag: v9.1.1999~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=757b42ab070632806ab10e94e26b70fc7bb60cb9;p=thirdparty%2Fvim.git runtime(tutor): Chapter 2: consistently use upper case letter, fix typo after 1e3e1ba067c79a Chapter 2: Fix missing "R" after 1e3e1ba067c79a when using register from insert mode. While at it, consistently use upper case letter for CTRL-R in the new-tutor. related: #18950 Signed-off-by: Christian Brabandt --- diff --git a/runtime/tutor/en/vim-02-beginner.tutor b/runtime/tutor/en/vim-02-beginner.tutor index 46cbf75b37..36eeca2ffa 100644 --- a/runtime/tutor/en/vim-02-beginner.tutor +++ b/runtime/tutor/en/vim-02-beginner.tutor @@ -42,7 +42,7 @@ Test cases: {curly}, [square], , and "quoted" items. 4. Advanced combinations: - `ciwnew`{normal} - Change current word to "new" - - `ciw"-"`{normal} - (Note: This is Ctrl-Minus): wrap current word in quotes + - `ciw"-"`{normal} - Wrap current word in quotes - `gUit`{normal} - Uppercase inner HTML tag content - `va"p`{normal} - Select quoted text and paste over it @@ -62,11 +62,11 @@ Final exercise: (Modify "this" text) by [applying {various} operations]< 3. Navigate forward to the word 'cookie' (`fk`{normal} or `2fc`{normal} or `$2b`{normal} or `/co`{normal} ``{normal}) and type `"byiw`{normal} - 4. Navigate to any point on the word 'Vince' and type `ciwa`{normal} + 4. Navigate to any point on the word 'Vince' and type `ciwa`{normal} **MNEMONIC**: *(c)hange (i)nner (w)ord with named (a)* - 5. Navigate to any point on the word 'cake' and type `ciwb`{normal} + 5. Navigate to any point on the word 'cake' and type `ciwb`{normal} a) Edward will henceforth be in charge of the cookie rations b) In this capacity, Vince will have sole cake discretionary powers @@ -88,10 +88,10 @@ REFERENCE: [Registers](registers) 2. Navigate to any point on the supplied number - 3. Type `ciw=`{normal}60\*60\*24 ``{normal} + 3. Type `ciw=`{normal}60\*60\*24 ``{normal} 4. On the next line, enter insert mode and add today's date with - `=`{normal}`system('date')`{vim} ``{normal} + `=`{normal}`system('date')`{vim} ``{normal} NOTE: All calls to system are OS dependent, e.g. on Windows use `system('date /t')`{vim} or `:r!date /t`{vim} @@ -194,7 +194,7 @@ Practice: "_diw on any word to delete it without affecting yank history NOTE: a common conundrum when coding is moving around large chunks of code. The following technique helps avoid number line calculations associated with operations like `"a147d`{normal} or `:945,1091d a`{vim} or even worse - using `i=`{normal}1091-945 ``{normal} first + using `i=`{normal}1091-945 ``{normal} first 1. Move the cursor to the line below marked ✓ @@ -257,9 +257,9 @@ REFERENCE: [Marks](marks) 5. Insert text directly from registers in insert mode: `a`{normal} 6. Insert the results of simple arithmetic operations: - `=`{normal}60\*60``{normal} in insert mode + `=`{normal}60\*60``{normal} in insert mode 7. Insert the results of system calls: - `=`{normal}`system('ls -1')`{vim}``{normal} in insert mode + `=`{normal}`system('ls -1')`{vim}``{normal} in insert mode 8. Inspect registers with `:reg`{vim} 9. Learn the final destination of whole line deletions: `dd`{normal} in diff --git a/runtime/tutor/tutor2 b/runtime/tutor/tutor2 index 47d030c87c..3e5701a52e 100644 --- a/runtime/tutor/tutor2 +++ b/runtime/tutor/tutor2 @@ -40,7 +40,7 @@ 4. Advanced combinations: - ciwnew - Change current word to "new" - - ciw"-" - (Note: This is Ctrl-Minus): wrap current word in quotes + - ciw"-" - Wrap current word in quotes - gUit - Uppercase inner HTML tag content - va"p - Select quoted text and paste over it