mirror of https://github.com/helix-editor/helix
Small fixes or improvements of tutor
parent
2ee11a0a9d
commit
794797e4a9
|
@ -956,7 +956,7 @@ lines.
|
||||||
2. Select the first "bat" and type * to set it to search.
|
2. Select the first "bat" and type * to set it to search.
|
||||||
3. Type v to enter Select mode.
|
3. Type v to enter Select mode.
|
||||||
4. Type n to select the other "bat".
|
4. Type n to select the other "bat".
|
||||||
5. Use c or r to change the "bat"s to "cat".
|
5. Use c (or r after selecting the "b"s) to change the "bat"s to "cat".
|
||||||
|
|
||||||
--> Everybody wants to be a bat,
|
--> Everybody wants to be a bat,
|
||||||
--> because a cat's the only bat
|
--> because a cat's the only bat
|
||||||
|
@ -1170,21 +1170,24 @@ letters! that is not good grammar. you can fix this.
|
||||||
|
|
||||||
Using the selections and multi-cursor functionality, you can
|
Using the selections and multi-cursor functionality, you can
|
||||||
comment multiple lines as long as they are under the selection or
|
comment multiple lines as long as they are under the selection or
|
||||||
cursors.
|
cursors. To uncomment the lines, press Ctrl-c again.
|
||||||
|
|
||||||
1. Move your cursor to the line marked with '-->' below.
|
1. Move your cursor to the line marked with '-->' below.
|
||||||
2. Now try to select or add more cursors to the other lines marked
|
2. Now try to select or add more cursors to the other lines marked
|
||||||
with '-->'.
|
with '-->'.
|
||||||
3. Comment those lines.
|
3. Comment those lines.
|
||||||
|
4. Uncomment those lines.
|
||||||
|
|
||||||
--> How many are you going to comment?
|
--> How many are you going to comment?
|
||||||
--> Is this enough for a comment?
|
--> Is this enough for a comment?
|
||||||
--> What are you doing?!
|
--> What are you doing?!
|
||||||
--> Stop commenting me!
|
--> Stop commenting me!
|
||||||
--> AAAAaargh!!!
|
--> AAAAaargh!!!
|
||||||
|
--> Enough! Uncomment me now!
|
||||||
|
|
||||||
Note: If there are already commented lines under selections or
|
Note: If there are only some commented lines under selections or
|
||||||
multiple cursors, they won't be uncommented but commented again.
|
multiple cursors, the commented lines will be commented again
|
||||||
|
instead of being uncommented.
|
||||||
|
|
||||||
=================================================================
|
=================================================================
|
||||||
= CHAPTER 11 RECAP =
|
= CHAPTER 11 RECAP =
|
||||||
|
@ -1192,10 +1195,8 @@ letters! that is not good grammar. you can fix this.
|
||||||
|
|
||||||
* Use Ctrl-c to comment a line under your cursor. Press Ctrl-c
|
* Use Ctrl-c to comment a line under your cursor. Press Ctrl-c
|
||||||
again to uncomment.
|
again to uncomment.
|
||||||
* To comment multiple lines, use the selections
|
* To comment multiple lines, use the selections or multi-cursors
|
||||||
and multi-cursors before typing Ctrl-c.
|
before typing Ctrl-c. Press Ctrl-c again to uncomment.
|
||||||
* Commented lines cannot be uncommented but commented again.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1454,7 +1455,7 @@ letters! that is not good grammar. you can fix this.
|
||||||
= CHAPTER 13.5 SWAPPING SPLITS =
|
= CHAPTER 13.5 SWAPPING SPLITS =
|
||||||
=================================================================
|
=================================================================
|
||||||
|
|
||||||
Open a split on the left with :vs hello1 and then a split below
|
Open a split on the right with :vs hello1 and then a split below
|
||||||
with :hs hello2.
|
with :hs hello2.
|
||||||
|
|
||||||
From hello2, press Ctrl-w K to swap it with the split above. Now
|
From hello2, press Ctrl-w K to swap it with the split above. Now
|
||||||
|
@ -1476,7 +1477,7 @@ letters! that is not good grammar. you can fix this.
|
||||||
= CHAPTER 13.6 TRANSPOSE SPLITS =
|
= CHAPTER 13.6 TRANSPOSE SPLITS =
|
||||||
=================================================================
|
=================================================================
|
||||||
|
|
||||||
Open a split on the left with :vs hello1 and then a split below
|
Open a split on the right with :vs hello1 and then a split below
|
||||||
with :hs hello2.
|
with :hs hello2.
|
||||||
|
|
||||||
Move to the tutor split, then press Ctrl-w t to transpose the
|
Move to the tutor split, then press Ctrl-w t to transpose the
|
||||||
|
|
Loading…
Reference in New Issue