on master help sign in
tutor: Change "Type" to "Press" for specials keys and modifiers (#5609)
42b0401Vítor Galvão
runtime/tutor+37−37
@@ -48,13 +48,13 @@ _________________________________________________________________
48
48
49 1. Type : to enter Command mode. Your cursor will
49 1. Type : to enter Command mode. Your cursor will
50 move to the bottom of the screen.
50 move to the bottom of the screen.
51− 2. Type q or quit and type Enter to exit Helix.
51+ 2. Type q or quit and press Enter to exit Helix.
52
52
53 Note: The quit command will fail if there are unsaved changes.
53 Note: The quit command will fail if there are unsaved changes.
54 To force quit and DISCARD these changes, type q! or quit!.
54 To force quit and DISCARD these changes, type q! or quit!.
55 You will learn how to save files later.
55 You will learn how to save files later.
56
56
57− To exit Command mode without entering a command, type Escape.
57+ To exit Command mode without entering a command, press Escape.
58
58
59 Now, move on to the next lesson.
59 Now, move on to the next lesson.
60
60
@@ -96,7 +96,7 @@ _________________________________________________________________
96 2. Move to a place in the line which is missing text and type
96 2. Move to a place in the line which is missing text and type
97 i to enter Insert mode. Keys you type will now type text.
97 i to enter Insert mode. Keys you type will now type text.
98 3. Enter the missing text.
98 3. Enter the missing text.
99− 4. Type Escape to exit Insert mode and return to Normal mode.
99+ 4. Press Escape to exit Insert mode and return to Normal mode.
100 5. Repeat until the line matches the line below it.
100 5. Repeat until the line matches the line below it.
101
101
102 --> Th stce misg so.
102 --> Th stce misg so.
@@ -119,7 +119,7 @@ _________________________________________________________________
119 2. Open a file in Helix by running: hx FILENAME
119 2. Open a file in Helix by running: hx FILENAME
120 3. Make some edits to the file.
120 3. Make some edits to the file.
121 4. Type : to enter Command mode.
121 4. Type : to enter Command mode.
122− 5. Type w or write, and type Enter to save the file.
122+ 5. Type w or write, and press Enter to save the file.
123
123
124 You can also type wq or write-quit to save and exit.
124 You can also type wq or write-quit to save and exit.
125
125
@@ -145,7 +145,7 @@ _________________________________________________________________
145
145
146 * Type d to delete the character at the cursor.
146 * Type d to delete the character at the cursor.
147
147
148− * Type i to enter Insert mode and type text. Type Escape to
148+ * Type i to enter Insert mode and type text. Press Escape to
149 return to Normal mode.
149 return to Normal mode.
150
150
151
151
@@ -469,7 +469,7 @@ _________________________________________________________________
469 Type N to go to the previous search match.
469 Type N to go to the previous search match.
470
470
471 1. Type / and type in a common word, like 'banana'.
471 1. Type / and type in a common word, like 'banana'.
472− 2. Type Enter to confirm the search.
472+ 2. Press Enter to confirm the search.
473 3. Use n and N to cycle through the matches.
473 3. Use n and N to cycle through the matches.
474
474
475 Searching uses regular expressions, allowing you to target more
475 Searching uses regular expressions, allowing you to target more
@@ -524,7 +524,7 @@ _________________________________________________________________
524 --> Fix th two nes at same ime.
524 --> Fix th two nes at same ime.
525 Fix these two lines at the same time.
525 Fix these two lines at the same time.
526
526
527− Note: Type Alt-C to do the same above the cursor.
527+ Note: Press Alt-C to do the same above the cursor.
528
528
529=================================================================
529=================================================================
530= 5.2 THE SELECT COMMAND =
530= 5.2 THE SELECT COMMAND =
@@ -535,11 +535,11 @@ _________________________________________________________________
535 1. Move the cursor to the line marked '-->' below.
535 1. Move the cursor to the line marked '-->' below.
536 2. Type x to select the line.
536 2. Type x to select the line.
537 3. Type s. A prompt will appear.
537 3. Type s. A prompt will appear.
538− 4. Type 'apples' and type Enter. Both occurrences of
538+ 4. Type 'apples' and press Enter. Both occurrences of
539 'apples' in the line will be selected.
539 'apples' in the line will be selected.
540 5. You can now type c and change 'apples' to something else,
540 5. You can now type c and change 'apples' to something else,
541 like 'oranges'.
541 like 'oranges'.
542− 6. Type Escape to exit Insert mode.
542+ 6. Press Escape to exit Insert mode.
543 7. Type , to remove the second cursor.
543 7. Type , to remove the second cursor.
544
544
545 --> I like to eat apples since my favorite fruit is apples.
545 --> I like to eat apples since my favorite fruit is apples.
@@ -558,7 +558,7 @@ _________________________________________________________________
558 1. Move the cursor to the line marked '-->' below.
558 1. Move the cursor to the line marked '-->' below.
559 2. Select the line with x and then type s.
559 2. Select the line with x and then type s.
560 3. Type ' +' to select any amount of consecutive spaces >1,
560 3. Type ' +' to select any amount of consecutive spaces >1,
561− then type Enter.
561+ then press Enter.
562 4. Type c and change the matches to single spaces.
562 4. Type c and change the matches to single spaces.
563
563
564 --> This sentence has some extra spaces.
564 --> This sentence has some extra spaces.
@@ -596,11 +596,11 @@ _________________________________________________________________
596= 5.5 SPLIT SELECTION INTO LINES =
596= 5.5 SPLIT SELECTION INTO LINES =
597=================================================================
597=================================================================
598
598
599− Type Alt-s to split the selection(s) on newlines.
599+ Press Alt-s to split the selection(s) on newlines.
600
600
601 1. Move the cursor to the first row of the table below.
601 1. Move the cursor to the first row of the table below.
602 2. Select the entire table with 6x.
602 2. Select the entire table with 6x.
603− 3. Type Alt-s to split into selections at each line.
603+ 3. Press Alt-s to split into selections at each line.
604 4. Align the table with &.
604 4. Align the table with &.
605
605
606 | FRUIT | AMOUNT |
606 | FRUIT | AMOUNT |
@@ -626,7 +626,7 @@ _________________________________________________________________
626
626
627 * Type & to align selections.
627 * Type & to align selections.
628
628
629− * Type Alt-s to split the selection into lines.
629+ * Press Alt-s to split the selection into lines.
630
630
631
631
632
632
@@ -685,7 +685,7 @@ _________________________________________________________________
685=================================================================
685=================================================================
686
686
687 Type . to repeat the last insert command.
687 Type . to repeat the last insert command.
688− Type Alt-. to repeat the last f / t selection.
688+ Press Alt-. to repeat the last f / t selection.
689
689
690 1. Move the cursor to the line marked '-->' below.
690 1. Move the cursor to the line marked '-->' below.
691 2. Make a change, insertion or appendage and repeat it with . .
691 2. Make a change, insertion or appendage and repeat it with . .
@@ -712,7 +712,7 @@ _________________________________________________________________
712 * Type r to replace selected characters.
712 * Type r to replace selected characters.
713
713
714 * Type . to repeat the last insertion.
714 * Type . to repeat the last insertion.
715− * Type Alt-. to repeat the last f / t selection.
715+ * Press Alt-. to repeat the last f / t selection.
716
716
717
717
718
718
@@ -794,13 +794,13 @@ lines.
794= 7.4 INCREMENTING AND DECREMENTING =
794= 7.4 INCREMENTING AND DECREMENTING =
795=================================================================
795=================================================================
796
796
797− Type Ctrl-a to increment the number under selection.
797+ Press Ctrl-a to increment the number under selection.
798− Type Ctrl-x to decrement the number under selection.
798+ Press Ctrl-x to decrement the number under selection.
799
799
800 1. Move the cursor to the third line marked '-->' below.
800 1. Move the cursor to the third line marked '-->' below.
801− 2. Type Ctrl-a to increment the second point marked 2.
801+ 2. Press Ctrl-a to increment the second point marked 2.
802 3. Repeat for the point marked 3.
802 3. Repeat for the point marked 3.
803− 4. Move to the last point and type Ctrl-x to decrement the 6.
803+ 4. Move to the last point and press Ctrl-x to decrement the 6.
804
804
805 --> 1) First point.
805 --> 1) First point.
806 --> 2) Added point.
806 --> 2) Added point.
@@ -822,8 +822,8 @@ lines.
822
822
823 * Type < and > to indent / outdent lines.
823 * Type < and > to indent / outdent lines.
824
824
825− * Type Ctrl-a to increment the selected number.
825+ * Press Ctrl-a to increment the selected number.
826− * Type Ctrl-x to decrement the selected number.
826+ * Press Ctrl-x to decrement the selected number.
827
827
828
828
829
829
@@ -952,15 +952,15 @@ lines.
952 searching or jumping to the definition of a function in code. It
952 searching or jumping to the definition of a function in code. It
953 stores these in what's called the jumplist.
953 stores these in what's called the jumplist.
954
954
955− Type Ctrl-s to manually save your current position to
955+ Press Ctrl-s to manually save your current position to
956 the jumplist.
956 the jumplist.
957
957
958− Type Ctrl-i ("in") and Ctrl-o ("out") to move forward and
958+ Press Ctrl-i ("in") and Ctrl-o ("out") to move forward and
959 backwards in the jumplist respectively.
959 backwards in the jumplist respectively.
960
960
961− 1. Type Ctrl-s somewhere.
961+ 1. Press Ctrl-s somewhere.
962 2. Move far away in the file.
962 2. Move far away in the file.
963− 3. Type Ctrl-o (just once!) to come back to where you saved.
963+ 3. Press Ctrl-o (just once!) to come back to where you saved.
964
964
965
965
966
966
@@ -975,8 +975,8 @@ lines.
975 * Type n / N in Visual mode to add selections on each search
975 * Type n / N in Visual mode to add selections on each search
976 match.
976 match.
977
977
978− * Type Ctrl-s to save position to the jumplist.
978+ * Press Ctrl-s to save position to the jumplist.
979− * Type Ctrl-i and Ctrl-o to go forward and backward in the
979+ * Press Ctrl-i and Ctrl-o to go forward and backward in the
980 jumplist.
980 jumplist.
981
981
982
982
@@ -995,7 +995,7 @@ lines.
995 Type ) and ( to cycle the primary selection forward and backward
995 Type ) and ( to cycle the primary selection forward and backward
996 through selections respectively.
996 through selections respectively.
997
997
998− Type Alt-, to remove the primary selection.
998+ Press Alt-, to remove the primary selection.
999
999
1000 1. Move the cursor to the line marked '-->' below.
1000 1. Move the cursor to the line marked '-->' below.
1001 2. Select both lines with xx or 2x.
1001 2. Select both lines with xx or 2x.
@@ -1014,7 +1014,7 @@ lines.
1014= 10.2 CYCLING THE CONTENT OF SELECTIONS =
1014= 10.2 CYCLING THE CONTENT OF SELECTIONS =
1015=================================================================
1015=================================================================
1016
1016
1017− Type Alt-) and Alt-( to cycle the content of the selections
1017+ Press Alt-) and Alt-( to cycle the content of the selections
1018 forward and backward respectively.
1018 forward and backward respectively.
1019
1019
1020 1. Move the cursor to the line marked '-->' below.
1020 1. Move the cursor to the line marked '-->' below.
@@ -1038,7 +1038,7 @@ lines.
1038
1038
1039 Type ~ to switch the case of all selected letters.
1039 Type ~ to switch the case of all selected letters.
1040 Type ` to set all selected letters to lowercase.
1040 Type ` to set all selected letters to lowercase.
1041− Type Alt-` to set all selected letters to uppercase.
1041+ Press Alt-` to set all selected letters to uppercase.
1042
1042
1043 1. Move the cursor to the first line marked '-->' below.
1043 1. Move the cursor to the first line marked '-->' below.
1044 2. Select each wrongly capitalised or lowercase letter
1044 2. Select each wrongly capitalised or lowercase letter
@@ -1048,7 +1048,7 @@ lines.
1048 5. Type ` to change the line to lowercase.
1048 5. Type ` to change the line to lowercase.
1049 6. Move to the third line marked '-->'.
1049 6. Move to the third line marked '-->'.
1050 7. Type x to select the line.
1050 7. Type x to select the line.
1051− 8. Type Alt-` to change the line to uppercase.
1051+ 8. Press Alt-` to change the line to uppercase.
1052
1052
1053 --> thIs sENtencE hAs MIS-cApitalIsed leTTerS.
1053 --> thIs sENtencE hAs MIS-cApitalIsed leTTerS.
1054 --> this SENTENCE SHOULD all be in LOWERCASE.
1054 --> this SENTENCE SHOULD all be in LOWERCASE.
@@ -1065,10 +1065,10 @@ lines.
1065 3. Type S then \. |! Enter (note the spaces after . and !).
1065 3. Type S then \. |! Enter (note the spaces after . and !).
1066 This effectively splits the selection into sentences at each
1066 This effectively splits the selection into sentences at each
1067 dot or exclamation mark.
1067 dot or exclamation mark.
1068− 4. Type Alt-; to reverse the selections.
1068+ 4. Press Alt-; to reverse the selections.
1069 5. Type ; to reduce selections to a single character - the first
1069 5. Type ; to reduce selections to a single character - the first
1070 letter of each sentence.
1070 letter of each sentence.
1071− 6. Type Alt-` to convert all selected letters to uppercase.
1071+ 6. Press Alt-` to convert all selected letters to uppercase.
1072
1072
1073---
1073---
1074these are sentences. some sentences don't start with uppercase
1074these are sentences. some sentences don't start with uppercase
@@ -1082,8 +1082,8 @@ letters! that is not good grammar. you can fix this.
1082
1082
1083 * Use ) and ( to cycle the primary selection back and forward
1083 * Use ) and ( to cycle the primary selection back and forward
1084 through selections respectively.
1084 through selections respectively.
1085− * Type Alt-, to remove the primary selection.
1085+ * Press Alt-, to remove the primary selection.
1086− * Type Alt-) and Alt-( to cycle the content of the selections.
1086+ * Press Alt-) and Alt-( to cycle the content of the selections.
1087
1087
1088 * Type ~ to alternate case of selected letters.
1088 * Type ~ to alternate case of selected letters.
1089 * Use ` and Alt-` to set the case of selected letters to
1089 * Use ` and Alt-` to set the case of selected letters to
@@ -1102,7 +1102,7 @@ letters! that is not good grammar. you can fix this.
1102= 11.1 COMMENTING A LINE =
1102= 11.1 COMMENTING A LINE =
1103=================================================================
1103=================================================================
1104
1104
1105−Type Ctrl-c to comment the line under your cursor.
1105+Press Ctrl-c to comment the line under your cursor.
1106To uncomment the line, press Ctrl-c again.
1106To uncomment the line, press Ctrl-c again.
1107
1107
11081. Move your cursor to the line marked '-->' below.
11081. Move your cursor to the line marked '-->' below.
@@ -1146,7 +1146,7 @@ multiple cursors, they won't be uncommented but commented again.
1146= CHAPTER 11 RECAP =
1146= CHAPTER 11 RECAP =
1147=================================================================
1147=================================================================
1148
1148
1149− * Use Ctrl-c to comment a line under your cursor. Type Ctrl-c
1149+ * Use Ctrl-c to comment a line under your cursor. Press Ctrl-c
1150 again to uncomment.
1150 again to uncomment.
1151 * To comment multiple lines, use the selections
1151 * To comment multiple lines, use the selections
1152 and multi-cursors before typing Ctrl-c.
1152 and multi-cursors before typing Ctrl-c.