From aa5cebae224923fcff032b3ad3deca5d9df1a53b Mon Sep 17 00:00:00 2001 From: n0s4 Date: Fri, 17 Jun 2022 17:19:21 +0100 Subject: [PATCH] Added Select mode section. Also added a note about X on "SELECTING LINES". --- runtime/tutor.txt | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/runtime/tutor.txt b/runtime/tutor.txt index 8a424fe1..b49a1ab4 100644 --- a/runtime/tutor.txt +++ b/runtime/tutor.txt @@ -307,7 +307,29 @@ _________________________________________________________________ ================================================================= -= 3.5 SELECTING LINES = += 3.5 SELECT/EXTEND MODE = +================================================================= + + Type v to enter Select mode. + Type v again or to return to normal mode + In Select mode every movement will extend the selection, as + oppposed to replacing it. + + 1. Move the cursor to the line below marked -->. + 2. Move to the F of FOO and type v2w to select the two words. + 3. Type d to remove the two words. Notice d returns you to + Normal mode. + 4. Move to the B of BAZ and repeat the sequence to delete them. + + --> Remove the FOO BAR distracting words BAZ BIZ from this line. + + + + + + +================================================================= += 3.6 SELECTING LINES = ================================================================= Type x to select a whole line. Type x again to select the next. @@ -325,8 +347,8 @@ _________________________________________________________________ --> 6) Sugar is sweet, --> 7) And so are you. - - + NOTE: X works similarly to x although it does not extend to + subsequent lines. X on an empty line does nothing. ================================================================= = CHAPTER 3 RECAP = @@ -344,12 +366,12 @@ _________________________________________________________________ * Type a number before a motion to repeat it that many times. + * Type v to enter Select mode, where all motions extend the + selection. + * Type x to select the entire current line. Type x again to select the next line. - - - ================================================================= = 4.1 UNDOING = =================================================================