on master help sign in
Add SPLITTING SELECTIONS
commit348951f6f98ceed1e142af9fe68a069a31090bec authorn0s4 <joemckay3006@gmail.com> dateSun 17 Jul 2022, 14:25 (4 years ago) parentb0f8d74
1 file changed+32−5
runtime/tutor.txt+32−5
runtime/tutor.txt+32−5
@@ -313,7 +313,7 @@ _________________________________________________________________
313313 Type v to enter Select mode.
314314 Type v again or <ESC> to return to Normal mode
315315 In Select mode every movement will extend the selection, as
316− oppposed to replacing it.
316+ opposed to replacing it.
317317
318318 1. Move the cursor to the line below marked -->.
319319 2. Move to the F of FOO and type v2w to select the two words.
@@ -985,11 +985,11 @@ lines.
985985 --> How much would would a wouldchuck chuck
986986 --> if a wouldchuck could chuck would?
987987
988− Note: A-( and A-) cycle the *contents* of the selections
989− as well as the position of the primary selection.
988+ Note: Additionally, A-( and A-) cycle the *contents* of the
989+ selections as well.
990990
991991=================================================================
992−= 10.3 CHANGING CASE =
992+= 10.2 CHANGING CASE =
993993=================================================================
994994
995995 Type ~ to switch the case of all selected letters.
@@ -1010,14 +1010,41 @@ lines.
10101010 --> this SENTENCE SHOULD all be in LOWERCASE.
10111011 --> THIS sentence should ALL BE IN uppercase!
10121012
1013+=================================================================
1014+= 10.3 SPLITTING SELECTIONS =
1015+=================================================================
1016+
1017+ Type S to split each selection on a regex pattern.
1018+
1019+ 1. Move the cursor to the line under ---.
1020+ 2. Type xx / 2x to select the lines.
1021+ 3. Type S then \.|!<enter>. This effectively splits the
1022+ selection into sentences at each dot or exclamation mark.
1023+ 4. Type A-; to reverse the selections.
1024+ 5. Type ; to reduce selections to a single character - the first
1025+ letter of each sentence.
1026+ 6. Type A-` to convert all selected letters to uppercase.
1027+
1028+---
1029+these are sentences. some sentences don't start with uppercase
1030+letters! that is not good grammar. you can fix this.
1031+
1032+
1033+
1034+
10131035=================================================================
10141036= CHAPTER 10 RECAP =
10151037=================================================================
10161038
1039+ * Use ) and ( to cycle the primary selection back and forward
1040+ through selections respectively.
1041+ * Type A-, to remove the primary selection.
1042+
10171043 * Type ~ to alternate case of selected letters.
1018− * Use ` and alt-` to set the case of selected letters to
1044+ * Use ` and A-` to set the case of selected letters to
10191045 upper and lower respectively.
10201046
1047+ * Type S to split selections on regex.
10211048
10221049
10231050