Skip to content

Commit 90c02b7

Browse files
jerabaul29stackotter
authored andcommitted
Add tutor entry about 2-character label jump (helix-editor#11273)
* Add tutor entry about 2-character label jump * Move gw tutor to chapter 9 * Do not explicitely say which labels are shown following gw
1 parent d1c028c commit 90c02b7

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

runtime/tutor

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,28 @@ lines.
988988

989989

990990

991+
=================================================================
992+
= 9.4 JUMP WITH TWO-CHARACTER LABELS =
993+
=================================================================
994+
995+
Type gw to enable the 2-character labels. The start of each word
996+
will be replaced by 2 highlighted characters. Type any sequence
997+
of 2 highlighted characters to jump to the corresponding label,
998+
or use ESC to drop the labels.
999+
1000+
The 2-character labels allow to quickly jump to any location
1001+
in the viewable selection.
1002+
1003+
1. Move the cursor to the start of the line marked '-->' below.
1004+
2. Press gw to enable the 2-character labels, and then the two
1005+
characters that replace the two leters he at the start of
1006+
here to jump to the corresponding word.
1007+
1008+
--> This is just a simple line of text.
1009+
There may be many such lines
1010+
But you really want to jump here!
1011+
This is fast with the 2-character labels.
1012+
9911013
=================================================================
9921014
= CHAPTER 9 RECAP =
9931015
=================================================================
@@ -1001,8 +1023,8 @@ lines.
10011023
* Press Ctrl-i and Ctrl-o to go forward and backward in the
10021024
jumplist.
10031025

1004-
1005-
1026+
* Type gw to enable 2-characters labels, and any 2 characters
1027+
to jump to the corresponding label, or ESC to drop the labels.
10061028

10071029

10081030

0 commit comments

Comments
 (0)