3 | |_| | ___ | | (_) \ \/ /
5 | | | | | __/ | | | | / /\ \
6 |_| |_| \___| |_| |_| /_/ \_\
8 A post-modern modal text editor.
9_________________________________________________________________
11 Welcome to the Helix editor! Helix is different from editors
12 you might be used to in that it is modal, meaning that it has
13 different modes for editing text. The primary modes you will
14 use are Normal mode and Insert mode. While in Normal mode, the
15 keys you type won't actually type text. Instead, they will
16 perform various actions with the text. This allows for more
17 efficient editing. This tutor will teach you how you can make
18 use of Helix's modal editing features. To begin, ensure your
19 CapsLock key is not pressed and hold the j key until you reach
23=================================================================
24= 1.1 BASIC CURSOR MOVEMENT =
25=================================================================
29 ← h l → * l is on the right
30 j * j looks like a down arrow
33 The cursor can be moved using the h, j, k, l keys, as shown
34 above. The cursor / arrow keys will also work, but it is faster
35 to use the hjkl keys as they are closer to the other keys you
36 will be using. Try moving around to get a feel for hjkl.
37 Once you're ready, hold j to continue to the next lesson.
45=================================================================
47=================================================================
49 1. Type : to enter Command mode. Your cursor will
50 move to the bottom of the screen.
51 2. Type q or quit and type Enter to exit Helix.
53 Note: The quit command will fail if there are unsaved changes.
54 To force quit and DISCARD these changes, type q! or quit!.
55 You will learn how to save files later.
57 To exit Command mode without entering a command, type Escape.
59 Now, move on to the next lesson.
67=================================================================
69=================================================================
71 Type the d key to delete the character under the cursor.
73 1. Move the cursor to the line marked '-->' below.
74 2. Move the cursor to each extra character, and type d to
77 --> Thhiss senttencee haass exxtra charracterss.
78 This sentence has extra characters.
80 Once the sentence is correct, move on to the next lesson.
89=================================================================
91=================================================================
93 Type the i key to enter Insert mode.
95 1. Move the cursor to the line marked '-->' below.
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.
98 3. Enter the missing text.
99 4. Type Escape to exit Insert mode and return to Normal mode.
100 5. Repeat until the line matches the line below it.
103 This sentence is missing some text.
105 Note: The status bar will display your current mode.
106 Notice that when you type i, 'NOR' changes to 'INS'.
111=================================================================
113=================================================================
115 Type :w / :write to save a file.
117 1. Exit Helix using :q! as explained before, or open a new
119 2. Open a file in Helix by running: hx FILENAME
120 3. Make some edits to the file.
121 4. Type : to enter Command mode.
122 5. Type w or write, and type Enter to save the file.
124 You can also type wq or write-quit to save and exit.
126 Note: You can optionally enter a filepath after the w / write
127 command in order to save to that path.
128 Note: If there are any unsaved changes to a file, a plus [+]
129 will appear next to the file name in the status bar.
133=================================================================
135=================================================================
137 * Use the h,j,k,l keys to move the cursor.
139 * Type : to enter Command mode.
140 * The q / quit and q! / quit! commands will exit Helix. The
141 former fails when there are unsaved changes. The latter
143 * The w / write command will save the file.
144 * The wq / write-quit command will do both.
146 * Type d to delete the character at the cursor.
148 * Type i to enter Insert mode and type text. Type Escape to
149 return to Normal mode.
155=================================================================
156= 2.1 MORE INSERT COMMANDS =
157=================================================================
159 As you saw, you can type i to enter Insert mode at the current
160 position of the cursor. There are a few other ways you can
161 enter Insert mode at different locations.
163 Common examples of insertion commands include:
164 i - Insert before the selection.
165 a - Insert after the selection. (a means 'append')
166 I - Insert at the start of the line.
167 A - Insert at the end of the line.
169 1. Move to anywhere in the line marked '-->' below.
170 2. Type A (Shift-a), your cursor will move to the end of
171 the line and you will be able to type.
172 3. Type the text necessary to match the line below.
174 --> This sentence is miss
175 This sentence is missing some text.
177=================================================================
179=================================================================
181 Type o to add a newline and insert below the cursor.
182 Type O to add a newline and insert above the cursor.
184 1. Move the cursor to the line marked '-->' below.
185 2. Type o to open a line below and type your answer.
187 --> What is the best editor?
199=================================================================
201=================================================================
203 * Type a to append to the selection.
205 * Type I to enter Insert mode at the first non-whitespace
206 character at the start of a line.
208 * Type A to enter Insert mode at the end of a line.
210 * Use o and O to open lines below and above the cursor respectively.
221=================================================================
222= 3.1 MOTIONS AND SELECTIONS =
223=================================================================
225 Type w to select forward until the next word.
227 The d key doesn't actually delete the character at the cursor,
228 it deletes all selected text. Your cursor is like a
229 single-character selection.
231 1. Move the cursor to the line marked '-->' below.
232 2. Move to the beginning of a word that needs to be deleted.
233 3. Type w to select until the beginning of the next word.
234 4. Type d to delete the selection.
235 5. Repeat for all extra words in the line.
237 --> This sentence pencil has vacuum extra words in the it.
238 This sentence has extra words in it.
243=================================================================
245=================================================================
247 As you saw, typing w moves the cursor forward until the start
248 of the next word, selecting the text traversed. This is useful
249 for moving around text and for selecting text to operate on.
251 Some common motions include:
252 w - Move forward to before the beginning of the next word.
253 e - Move forward to the end of the current word.
254 b - Move backward to the beginning of the current word.
256 To select the word under cursor, combine e and b.
258 1. Move the cursor to the line marked '-->' below.
259 2. Move to a 'd' letter.
260 3. Type e to select a half of the word.
261 4. Type b to select the rest.
263--> The Middle Kingdom.
265=================================================================
266= 3.3 WORDS AND words =
267=================================================================
269 The w,e,b motions also have counterparts - W,E,B - which
270 traverse WORDS instead of words. WORDS are only separated by
271 whitespace, whereas words can be separated by other characters
272 in addition to whitespace.
274 All of these motions select the text they traverse.
287=================================================================
288= 3.4 THE CHANGE COMMAND =
289=================================================================
291 Type c to change the current selection.
293 The change command deletes the current selection and enters
294 Insert mode, so it is a very common shorthand for di.
296 1. Move the cursor to the line marked '-->' below.
297 2. Move to the start of an incorrect word and type w to
299 3. Type c to delete the word and enter Insert mode.
300 4. Type the correct word.
301 5. Repeat until the line matches the line below it.
303 --> This paper has heavy words behind it.
304 This sentence has incorrect words in it.
309=================================================================
310= 3.5 COUNTS WITH MOTIONS =
311=================================================================
313 Type a number before a motion to repeat it that many times.
315 1. Move the cursor to the line marked '-->' below.
316 2. Type 2w to move 2 words forward.
317 3. Type 3e to move to the end of the third word forward.
318 4. Type 2b to move 2 words backwards
319 5. Try the above with different numbers.
321 --> This is just a line with words you can move around in.
331=================================================================
332= 3.6 SELECT / EXTEND MODE =
333=================================================================
335 Type v to enter Select mode.
336 Type v again or Escape to return to Normal mode
337 In Select mode every movement will extend the selection, as
338 opposed to replacing it.
340 1. Move the cursor to the line marked '-->' below.
341 2. Move to the F of FOO and type v2w to select the two words.
342 3. Type d to remove the two words. Notice d returns you to
344 4. Move to the B of BAZ and repeat the sequence to delete them.
346 --> Remove the FOO BAR distracting words BAZ BIZ from this line.
353=================================================================
354= 3.7 SELECTING LINES =
355=================================================================
357 Type x to select a whole line. Type x again to select the next.
359 1. Move the cursor to the second line marked '-->' below.
360 2. Type x to select the line, and d to delete it.
361 3. Move to the fourth line.
362 4. Type x twice or type 2x to select 2 lines, and d to delete.
364 --> 1) Roses are red,
366 --> 3) Violets are blue,
368 --> 5) Clocks tell time,
369 --> 6) Sugar is sweet,
370 --> 7) And so are you.
372 Note : X works similarly to x although it doesn't extend to
373 subsequent lines. X on an empty line does nothing.
375=================================================================
376= 3.8 COLLAPSING SELECTIONS =
377=================================================================
379 Type ; to collapse selections to single cursors.
381 Sometimes, you want to deselect without having to move the
382 cursor(s). This can be done using the ; key.
384 1. Move the cursor to the line marked '-->' below.
385 2. Use the motions you have learned to move around the line,
386 and try using ; to deselect the text after it is selected
389 --> This is an error-free line with words to move around in.
391 Note: This works the same in Select mode.
392 Note: Another related command is Alt-; which flips selections.
397=================================================================
399=================================================================
401 * Type w to select forward until the next word.
402 * Type e to select to the end of the current word.
403 * Type b to select backward to the start of the current word.
404 * Use uppercase counterparts, W,E,B, to traverse WORDS.
406 * Type d to delete the entire selection.
407 * Type c to delete the selection and enter Insert mode.
409 * Type a number before a motion to repeat it that many times.
411 * Type v to enter Select mode, where all motions extend the
414 * Type x to select the entire current line. Type x again to
415 select the next line.
417 * Type semicolon ( ; ) to collapse selection.
419=================================================================
421=================================================================
423 Type u to undo. Type U to redo.
425 1. Move the cursor to the line marked '-->' below.
426 2. Move to the first error, and type d to delete it.
427 3. Type u to undo your deletion.
428 4. Fix all the errors on the line.
429 5. Type u several times to undo your fixes.
430 6. Type U (Shift-u) several times to redo your fixes.
432 --> Fiix the errors on thhis line and reeplace them witth undo.
441=================================================================
442= 4.2 COPYING AND PASTING TEXT =
443=================================================================
445 Type y to yank (copy) the selection.
446 Type p to paste the yanked selection after the cursor.
447 Type P to paste the yanked text before the cursor.
449 1. Move the cursor to the line marked '-->' below.
450 Make sure your cursor is on the "b" of banana.
451 2. Type w to select "banana" and y to yank it.
452 3. Move to the space between "2" and "3" and type p to paste.
453 4. Repeat between "3" and "4".
456 1 banana 2 banana 3 banana 4
458 Note: Whenever you delete or change text, Helix will copy the
459 altered text. Use Alt-d / Alt-c instead to avoid this.
460 Note: Helix doesn't share the system clipboard by default. Type
461 Space + y / p to yank / paste on the system's clipboard.
463=================================================================
464= 4.3 SEARCHING IN FILE =
465=================================================================
467 Type / to search forward in file, Enter to confirm search.
468 Type n to go to the next search match.
469 Type N to go to the previous search match.
471 1. Type / and type in a common word, like 'banana'.
472 2. Type Enter to confirm the search.
473 3. Use n and N to cycle through the matches.
475 Searching uses regular expressions, allowing you to target more
476 complex expressions, which you'll learn about in the lesson on
479 Note: To search backwards, type ? (Shift-/).
480 Note: Unlike Vim, ? doesn't change the search direction.
481 N always goes backwards and n always goes forwards.
485=================================================================
487=================================================================
489 * Type u to undo. Type U to redo.
491 * Type y to yank (copy) text and p to paste.
492 * Use Space + y and Space + p to yank / paste on the system
495 * Type / to search forward in file, and ? to search backwards.
496 * Use n and N to cycle through search matches.
507=================================================================
508= 5.1 MULTIPLE CURSORS =
509=================================================================
511 Type C to duplicate the cursor to the next suitable line.
513 1. Move the cursor to the first line marked '-->' below. Place
514 the cursor somewhere past the '-->'.
515 2. Type C to duplicate the cursor to the next suitable line.
516 Notice how it skips the line in the middle. Keys you type
517 will now affect both cursors.
518 3. Use Insert mode to correct the lines. The two cursors will
519 fix both lines simultaneously.
520 4. Type , to remove the second cursor.
522 --> Fix th two nes at same ime.
524 --> Fix th two nes at same ime.
525 Fix these two lines at the same time.
527 Note: Type Alt-C to do the same above the cursor.
529=================================================================
530= 5.2 THE SELECT COMMAND =
531=================================================================
533 Type s to select matches in the selection.
535 1. Move the cursor to the line marked '-->' below.
536 2. Type x to select the line.
537 3. Type s. A prompt will appear.
538 4. Type 'apples' and type Enter. Both occurrences of
539 'apples' in the line will be selected.
540 5. You can now type c and change 'apples' to something else,
542 6. Type Escape to exit Insert mode.
543 7. Type , to remove the second cursor.
545 --> I like to eat apples since my favorite fruit is apples.
546 I like to eat oranges since my favorite fruit is oranges.
551=================================================================
552= 5.3 SELECTING VIA REGEX =
553=================================================================
555 Like searching, the select command selects regular expressions,
556 not just exact matches.
558 1. Move the cursor to the line marked '-->' below.
559 2. Select the line with x and then type s.
560 3. Type ' +' to select any amount of consecutive spaces >1,
562 4. Type c and change the matches to single spaces.
564 --> This sentence has some extra spaces.
565 This sentence has some extra spaces.
567 Note: If you want to perform find-and-replace, the select
568 command is the way to do it. Select the text you want
569 to replace in — type % to select the whole file — and
570 then perform the steps explained above.
573=================================================================
574= 5.4 ALIGN SELECTIONS =
575=================================================================
577 Type & to align the contents of the selections.
579 1. Move the cursor to the first line marked '-->' below. Place
580 the cursor on the whitespace just after the arrow.
581 2. Type C four times or 4C.
582 3. Type W to select the numbers and brackets.
583 4. Type & to align the words.
591 Note: & only cares about the alignment of the "head" of the
592 selections - the end that moves. The other end is called
595=================================================================
596= 5.5 SPLIT SELECTION INTO LINES =
597=================================================================
599 Type Alt-s to split the selection(s) on newlines.
601 1. Move the cursor to the first row of the table below.
602 2. Select the entire table with 6x.
603 3. Type Alt-s to split into selections at each line.
604 4. Align the table with &.
617=================================================================
619=================================================================
621 * Type C to duplicate the cursor to the next suitable line
622 and Alt-C for previous suitable line.
624 * Type s to select all instances of a regex pattern inside
625 the current selection.
627 * Type & to align selections.
629 * Type Alt-s to split the selection into lines.
639=================================================================
640= 6.1 SELECTING TO A CHARACTER =
641=================================================================
643 Type f<ch> to select up to and including (find) a character.
644 Type t<ch> to do the same, but not including (till) a character.
645 Type uppercase F / T to do the same backwards.
647 1. Move the cursor to the line marked '-->' below. Place the
648 cursor on the first dash.
649 2. Type f[ to select to the square bracket.
650 3. Type d to delete your selection.
651 4. Go to the end of the line and repeat with F].
652 5. Move to the second line marked '-->', just after the arrow.
653 6. Use t and T to delete the dashes around the sentence.
655 --> -----[Free this sentence of its brackets!]-----
656 --> ------Free this sentence of its dashes!------
658 Note: Unlike Vim, Helix doesn't limit these commands to the
659 current line. It searches for the character in the file.
661=================================================================
662= 6.2 THE REPLACE COMMAND =
663=================================================================
665 Type r<ch> to replace all selected characters with <ch>.
667 1. Move to the second line of the table, place the cursor on the
669 2. Type t| (Shift-\) to select the = separator.
670 3. Type r- to replace the separator with dashes.
683=================================================================
685=================================================================
687 Type . to repeat the last insert command.
688 Type Alt-. to repeat the last f / t selection.
690 1. Move the cursor to the line marked '-->' below.
691 2. Make a change, insertion or appendage and repeat it with . .
692 3. Try using Alt-. with f and t, to select multiple sentences
695 --> This is some text for you to repeat things. You can repeat
696 insertions like changing words, or repeat selections like
705=================================================================
707=================================================================
709 * Type f / F to extend selection up to & including a character.
710 * Type t / T to extend selection until a character.
712 * Type r to replace selected characters.
714 * Type . to repeat the last insertion.
715 * Type Alt-. to repeat the last f / t selection.
727=================================================================
728= 7.1 REPLACE WITH YANKED TEXT =
729=================================================================
731 Type R to replace the selection with previously yanked text.
733 1. Move the cursor to the line marked '-->' below.
734 2. Type w to select "watermelons" and then y to yank it.
735 3. Select "oranges" with w.
736 4. Type R to replace "oranges" with "watermelons"
739 --> I like watermelons because oranges are refreshing.
740 I like watermelons because watermelons are refreshing.
749=================================================================
751=================================================================
753 Type J to join together lines in selection.
755 1. Move the cursor to the line marked '-->' below.
756 2. Type x four times or 4x to select all four lines.
757 3. Type J to join the lines together.
764 This sentence is spilling over onto other lines.
771=================================================================
772= 7.3 INDENTING LINES =
773=================================================================
775 Type > to indent a line and < to outdent it.
777 1. Move the cursor to the line marked '-->' below.
778 2. Move down to the second line and type > to indent it.
779 3. Move to the third line and type < to outdent it.
793=================================================================
794= 7.4 INCREMENTING AND DECREMENTING =
795=================================================================
797 Type Ctrl-a to increment the number under selection.
798 Type Ctrl-x to decrement the number under selection.
800 1. Move the cursor to the third line marked '-->' below.
801 2. Type Ctrl-a to increment the second point marked 2.
802 3. Repeat for the point marked 3.
803 4. Move to the last point and type Ctrl-x to decrement the 6.
808 --> 3) Another point.
811 Note: If there isn't a number under the selection the cursor
812 will jump to the next number in the line and act on it.
815=================================================================
817=================================================================
819 * Type R to replace the selection with yanked text.
821 * Type J to join lines in selection.
823 * Type < and > to indent / outdent lines.
825 * Type Ctrl-a to increment the selected number.
826 * Type Ctrl-x to decrement the selected number.
837=================================================================
839=================================================================
841 Registers are containers identified by a character for storing
842 things like yanked text. Registers are also used to store the
843 most recent search term as well as macros, which you'll learn
844 about in the next section.
846 Type "<ch> to select register <ch>.
848 1. Move the cursor to the line marked '-->' below.
849 2. Type w to select "watermelons" and yank with y.
850 3. Type w to select "bananas".
851 4. Change to register b with "b and yank with y.
852 5. Select "mangoes" and type R to replace it with "watermelons".
853 6. Select "pineapples" then type "b R to replace with "bananas".
855 --> I like watermelons and bananas because my favorite fruits
856 are mangoes and pineapples.
859=================================================================
861=================================================================
863 Macros are a way to record a set of actions you want to repeat.
864 You can also record macros to a specific register (default @).
865 Type Q to start recording a macro - you should see a popup at
866 the bottom of your screen. Type Q again to stop recording.
867 Type q to repeat the macro from register @ (the default).
869 1. Move the cursor to the first line marked '-->' below.
870 Ensure your cursor is on the '>' of the arrow.
871 2. Type Q to start recording.
872 3. Edit the line to look like the bottom one.
873 4. Exit insert and type Q again to stop recording.
874 5. Move to the line below and put your cursor on '>' again.
875 6. Type q to repeat the macro.
877 --> ... sentence doesn't have its first and last ... .
878 --> ... sentence doesn't have its first and last ... .
879 This sentence doesn't have its first and last word.
881=================================================================
883=================================================================
885 * Type " to select a different register.
887 * Type Q to start and stop recording a macro to a register,
890 * Type q to replay a macro from @ or the selected register.
903=================================================================
904= 9.1 SEARCHING FOR SELECTIONS =
905=================================================================
907 The most recent search with / is stored in register /.
908 n and N both refer to register /, this means we can set that
909 register without having to type in a search.
911 Type * to copy the selection into register /, setting the search
912 term to the selection. This copies the primary selection, which
913 you will learn about in the section on cycling selections.
915 1. Move the cursor to the line marked '-->' below.
916 2. Select "horse" with e and type *.
917 3. Use n and N to jump between the instances of "horse".
919 --> A horse is a horse, of course, of course,
920 --> And no one can talk to a horse of course.
922 Note: * is like a shorthand for "/ y as all it really does is
923 copy the selection into the / register.
925=================================================================
926= 9.2 ADDING SELECTION ON NEXT SEARCH MATCH =
927=================================================================
929 A property of Select mode (v) when using n and N is that instead
930 of moving the selection to the next match, it adds a new
931 selection on each match.
933 1. Move the cursor to the line marked '-->' below.
934 2. Select the first "bat" and type * to set it to search.
935 3. Type v to enter Select mode.
936 4. Type n to select the other "bat".
937 5. Use c or r to change the "bat"s to "cat".
939 --> Everybody wants to be a bat,
940 --> because a cat's the only bat
941 --> who knows where it's at.
947=================================================================
948= 9.3 USING THE JUMPLIST =
949=================================================================
951 Helix can keep track of "jumps" which are big movements, like
952 searching or jumping to the definition of a function in code. It
953 stores these in what's called the jumplist.
955 Type Ctrl-s to manually save your current position to
958 Type Ctrl-i ("in") and Ctrl-o ("out") to move forward and
959 backwards in the jumplist respectively.
961 1. Type Ctrl-s somewhere.
962 2. Move far away in the file.
963 3. Type Ctrl-o (just once!) to come back to where you saved.
969=================================================================
971=================================================================
973 * Type * to set the search register to the primary selection.
975 * Type n / N in Visual mode to add selections on each search
978 * Type Ctrl-s to save position to the jumplist.
979 * Type Ctrl-i and Ctrl-o to go forward and backward in the
991=================================================================
992= 10.1 CYCLING AND REMOVING SELECTIONS =
993=================================================================
995 Type ) and ( to cycle the primary selection forward and backward
996 through selections respectively.
998 Type Alt-, to remove the primary selection.
1000 1. Move the cursor to the line marked '-->' below.
1001 2. Select both lines with xx or 2x.
1002 3. Type s to select, type "would" and enter.
1003 4. Use ( and ) to cycle the primary selection and remove the
1004 very second "would" with Alt-, .
1005 5. Type c "wood" to change the remaining "would"s to "wood".
1007 --> How much would would a wouldchuck chuck
1008 --> if a wouldchuck could chuck would?
1013=================================================================
1014= 10.2 CYCLING THE CONTENT OF SELECTIONS =
1015=================================================================
1017 Type Alt-) and Alt-( to cycle the content of the selections
1018 forward and backward respectively.
1020 1. Move the cursor to the line marked '-->' below.
1021 2. Select both lines with xx or 2x.
1022 3. Type s to select, type "through|water|know" and enter.
1023 4. Use Alt-( and Alt-) to cycle the content of the selections.
1025 --> Jumping through the water,
1035=================================================================
1036= 10.3 CHANGING CASE =
1037=================================================================
1039 Type ~ to switch the case of all selected letters.
1040 Type ` to set all selected letters to lowercase.
1041 Type Alt-` to set all selected letters to uppercase.
1043 1. Move the cursor to the first line marked '-->' below.
1044 2. Select each wrongly capitalised or lowercase letter
1045 and type ~ over them.
1046 3. Move to the second line marked '-->'.
1047 4. Type x to select the line.
1048 5. Type ` to change the line to lowercase.
1049 6. Move to the third line marked '-->'.
1050 7. Type x to select the line.
1051 8. Type Alt-` to change the line to uppercase.
1053 --> thIs sENtencE hAs MIS-cApitalIsed leTTerS.
1054 --> this SENTENCE SHOULD all be in LOWERCASE.
1055 --> THIS sentence should ALL BE IN uppercase!
1057=================================================================
1058= 10.4 SPLITTING SELECTIONS =
1059=================================================================
1061 Type S to split each selection on a regex pattern.
1063 1. Move the cursor to the line under ---.
1064 2. Type xx / 2x to select the lines.
1065 3. Type S then \. |! Enter (note the spaces after . and !).
1066 This effectively splits the selection into sentences at each
1067 dot or exclamation mark.
1068 4. Type Alt-; to reverse the selections.
1069 5. Type ; to reduce selections to a single character - the first
1070 letter of each sentence.
1071 6. Type Alt-` to convert all selected letters to uppercase.
1074these are sentences. some sentences don't start with uppercase
1075letters! that is not good grammar. you can fix this.
1079=================================================================
1081=================================================================
1083 * Use ) and ( to cycle the primary selection back and forward
1084 through selections respectively.
1085 * Type Alt-, to remove the primary selection.
1086 * Type Alt-) and Alt-( to cycle the content of the selections.
1088 * Type ~ to alternate case of selected letters.
1089 * Use ` and Alt-` to set the case of selected letters to
1090 upper and lower respectively.
1092 * Type S to split selections on regex.
1101=================================================================
1102= 11.1 COMMENTING A LINE =
1103=================================================================
1105Type Ctrl-c to comment the line under your cursor.
1106To uncomment the line, press Ctrl-c again.
11081. Move your cursor to the line marked '-->' below.
11092. Now comment the line marked with '-->'.
11103. Now try uncommenting the line.
1112--> Comment me please
1123=================================================================
1124= 11.2 COMMENTING MULTIPLE LINES =
1125=================================================================
1127Using the selections and multi-cursor functionality, you can
1128comment multiple lines as long as it is under the selection or
11311. Move your cursor to the line marked with '-->' below.
11322. Now try to select or add more cursors the other lines marked
11343. Comment those lines.
1136--> How many are you going to comment?
1137--> Is this enough for a comment?
1138--> What are you doing?!
1139--> Stop commenting me!
1142Note: If there are already commented lines under selections or
1143multiple cursors, they won't be uncommented but commented again.
1145=================================================================
1147=================================================================
1149 * Use Ctrl-c to comment a line under your cursor. Type Ctrl-c
1151 * To comment multiple lines, use the selections
1152 and multi-cursors before typing Ctrl-c.
1153 * Commented lines cannot be uncommented but commented again.
1167=================================================================
1168 This tutorial is still a work-in-progress.
1169 More sections are planned.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list