on master help sign in
Add SPLITTING SELECTIONS
348951fn0s4
runtime/tutor.txt+32−5
@@ -313,7 +313,7 @@ _________________________________________________________________
313 Type v to enter Select mode.
313 Type v to enter Select mode.
314 Type v again or <ESC> to return to Normal mode
314 Type v again or <ESC> to return to Normal mode
315 In Select mode every movement will extend the selection, as
315 In Select mode every movement will extend the selection, as
316− oppposed to replacing it.
316+ opposed to replacing it.
317
317
318 1. Move the cursor to the line below marked -->.
318 1. Move the cursor to the line below marked -->.
319 2. Move to the F of FOO and type v2w to select the two words.
319 2. Move to the F of FOO and type v2w to select the two words.
@@ -985,11 +985,11 @@ lines.
985 --> How much would would a wouldchuck chuck
985 --> How much would would a wouldchuck chuck
986 --> if a wouldchuck could chuck would?
986 --> if a wouldchuck could chuck would?
987
987
988− Note: A-( and A-) cycle the *contents* of the selections
988+ Note: Additionally, A-( and A-) cycle the *contents* of the
989− as well as the position of the primary selection.
989+ selections as well.
990
990
991=================================================================
991=================================================================
992−= 10.3 CHANGING CASE =
992+= 10.2 CHANGING CASE =
993=================================================================
993=================================================================
994
994
995 Type ~ to switch the case of all selected letters.
995 Type ~ to switch the case of all selected letters.
@@ -1010,14 +1010,41 @@ lines.
1010 --> this SENTENCE SHOULD all be in LOWERCASE.
1010 --> this SENTENCE SHOULD all be in LOWERCASE.
1011 --> THIS sentence should ALL BE IN uppercase!
1011 --> THIS sentence should ALL BE IN uppercase!
1012
1012
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+
1013=================================================================
1035=================================================================
1014= CHAPTER 10 RECAP =
1036= CHAPTER 10 RECAP =
1015=================================================================
1037=================================================================
1016
1038
1039+ * Use ) and ( to cycle the primary selection back and forward
1040+ through selections respectively.
1041+ * Type A-, to remove the primary selection.
1042+
1017 * Type ~ to alternate case of selected letters.
1043 * 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
1019 upper and lower respectively.
1045 upper and lower respectively.
1020
1046
1047+ * Type S to split selections on regex.
1021
1048
1022
1049
1023
1050