|
|
@ -20,6 +20,7 @@ _________________________________________________________________
|
|
|
|
the first lesson.
|
|
|
|
the first lesson.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 1.1 BASIC CURSOR MOVEMENT =
|
|
|
|
= 1.1 BASIC CURSOR MOVEMENT =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -38,10 +39,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 1.2 EXITING HELIX =
|
|
|
|
= 1.2 EXITING HELIX =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -60,10 +57,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 1.3 DELETION =
|
|
|
|
= 1.3 DELETION =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -80,12 +73,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 1.4 INSERT MODE =
|
|
|
|
= 1.4 INSERT MODE =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -108,6 +95,8 @@ _________________________________________________________________
|
|
|
|
Note: The status bar will display your current mode.
|
|
|
|
Note: The status bar will display your current mode.
|
|
|
|
Notice that when you type i, 'NOR' changes to 'INS'.
|
|
|
|
Notice that when you type i, 'NOR' changes to 'INS'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 1.5 MORE ON INSERT MODE =
|
|
|
|
= 1.5 MORE ON INSERT MODE =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -130,6 +119,8 @@ _________________________________________________________________
|
|
|
|
--> This sentence is miss
|
|
|
|
--> This sentence is miss
|
|
|
|
This sentence is missing some text.
|
|
|
|
This sentence is missing some text.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 1.6 SAVING A FILE =
|
|
|
|
= 1.6 SAVING A FILE =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -176,8 +167,6 @@ _________________________________________________________________
|
|
|
|
* Use A to enter Insert mode at the end of a line.
|
|
|
|
* Use A to enter Insert mode at the end of a line.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 2.1 MOTIONS AND SELECTIONS =
|
|
|
|
= 2.1 MOTIONS AND SELECTIONS =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -198,8 +187,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 2.2 MORE ON MOTIONS =
|
|
|
|
= 2.2 MORE ON MOTIONS =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -243,7 +230,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 2.4 COUNTS WITH MOTIONS =
|
|
|
|
= 2.4 COUNTS WITH MOTIONS =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -251,21 +237,15 @@ _________________________________________________________________
|
|
|
|
Type a number before a motion to repeat it that many times.
|
|
|
|
Type a number before a motion to repeat it that many times.
|
|
|
|
|
|
|
|
|
|
|
|
1. Move the cursor to the line below marked -->.
|
|
|
|
1. Move the cursor to the line below marked -->.
|
|
|
|
|
|
|
|
|
|
|
|
2. Type 2w to move 2 words forward.
|
|
|
|
2. Type 2w to move 2 words forward.
|
|
|
|
|
|
|
|
|
|
|
|
3. Type 3e to move to the end of the third word forward.
|
|
|
|
3. Type 3e to move to the end of the third word forward.
|
|
|
|
|
|
|
|
|
|
|
|
4. Type 2b to move 2 words backwards
|
|
|
|
4. Type 2b to move 2 words backwards
|
|
|
|
|
|
|
|
|
|
|
|
5. Try the above with different numbers.
|
|
|
|
5. Try the above with different numbers.
|
|
|
|
|
|
|
|
|
|
|
|
--> This is just a line with words you can move around in.
|
|
|
|
--> This is just a line with words you can move around in.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 2.5 SELECTING LINES =
|
|
|
|
= 2.5 SELECTING LINES =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -287,7 +267,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 2.6 UNDOING =
|
|
|
|
= 2.6 UNDOING =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -305,11 +284,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= CHAPTER 2 RECAP =
|
|
|
|
= CHAPTER 2 RECAP =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -332,6 +306,7 @@ _________________________________________________________________
|
|
|
|
* Type u to undo. Type U to redo.
|
|
|
|
* Type u to undo. Type U to redo.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 3.1 MULTIPLE CURSORS =
|
|
|
|
= 3.1 MULTIPLE CURSORS =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -377,9 +352,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 3.3 SELECTING VIA REGEX =
|
|
|
|
= 3.3 SELECTING VIA REGEX =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -401,7 +373,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 3.4 COLLAPSING SELECTIONS =
|
|
|
|
= 3.4 COLLAPSING SELECTIONS =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -420,10 +391,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 3.5 SELECTING TO A CHARACTER =
|
|
|
|
= 3.5 SELECTING TO A CHARACTER =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -446,6 +413,8 @@ _________________________________________________________________
|
|
|
|
Note: Unlike Vim, Helix doesn't limit these commands to the
|
|
|
|
Note: Unlike Vim, Helix doesn't limit these commands to the
|
|
|
|
current line. It searches for the character in the file.
|
|
|
|
current line. It searches for the character in the file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= CHAPTER 3 RECAP =
|
|
|
|
= CHAPTER 3 RECAP =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -464,10 +433,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 4.1 COPYING AND PASTING TEXT =
|
|
|
|
= 4.1 COPYING AND PASTING TEXT =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -490,6 +455,8 @@ _________________________________________________________________
|
|
|
|
Note: Helix doesn't share the system clipboard by default. Type
|
|
|
|
Note: Helix doesn't share the system clipboard by default. Type
|
|
|
|
space-y/p to yank/paste on your computer's main clipboard.
|
|
|
|
space-y/p to yank/paste on your computer's main clipboard.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 4.2 CHANGING CASE =
|
|
|
|
= 4.2 CHANGING CASE =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -512,6 +479,8 @@ _________________________________________________________________
|
|
|
|
--> this SENTENCE SHOULD all be in LOWERCASE.
|
|
|
|
--> this SENTENCE SHOULD all be in LOWERCASE.
|
|
|
|
--> THIS sentence should ALL BE IN uppercase!
|
|
|
|
--> THIS sentence should ALL BE IN uppercase!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 4.3 MACROS =
|
|
|
|
= 4.3 MACROS =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -534,6 +503,8 @@ _________________________________________________________________
|
|
|
|
--> ... sentence doesn't have it's first and last ... .
|
|
|
|
--> ... sentence doesn't have it's first and last ... .
|
|
|
|
This sentence doesn't have it's first and last word.
|
|
|
|
This sentence doesn't have it's first and last word.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= CHAPTER 4 RECAP =
|
|
|
|
= CHAPTER 4 RECAP =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -551,11 +522,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 5.1 USING THE JUMPLIST =
|
|
|
|
= 5.1 USING THE JUMPLIST =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -576,8 +542,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 5.2 SEARCHING IN FILE =
|
|
|
|
= 5.2 SEARCHING IN FILE =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -599,7 +563,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= CHAPTER 5 RECAP =
|
|
|
|
= CHAPTER 5 RECAP =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -612,16 +575,6 @@ _________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 6.1 JOINING LINES =
|
|
|
|
= 6.1 JOINING LINES =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -641,9 +594,6 @@ lines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 6.2 INDENTING LINES =
|
|
|
|
= 6.2 INDENTING LINES =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -664,8 +614,6 @@ lines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= 6.3 OPENING LINES =
|
|
|
|
= 6.3 OPENING LINES =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -680,14 +628,6 @@ lines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
= CHAPTER 6 RECAP =
|
|
|
|
= CHAPTER 6 RECAP =
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
@ -703,16 +643,6 @@ lines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=================================================================
|
|
|
|
=================================================================
|
|
|
|
This tutorial is still a work-in-progress.
|
|
|
|
This tutorial is still a work-in-progress.
|
|
|
|
More sections are planned.
|
|
|
|
More sections are planned.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|