on master help sign in
Add REPLACING WITH YANKED TEXT and INCREMENTING/DECREMTING

Also some consistency issues - redundant/dated comment in JOINING LINES - spacing around slashes - etc.

commit29ee7f6d015feda3131623e8ca2ecd25091ca619 authorn0s4 <joemckay3006@gmail.com> dateSat 25 Jun 2022, 20:23 (4 years ago) parent92d94e1
1 file changed+119−75
runtime/tutor.txt+119−75
runtime/tutor.txt+119−75
@@ -620,7 +620,7 @@ _________________________________________________________________
620620
621621 Type f<ch> to select up to and including (find) a character.
622622 Type t<ch> to do the same, but not including (till) a character.
623− Type uppercase F/T to do the same backwards.
623+ Type uppercase F / T to do the same backwards.
624624
625625 1. Move the cursor to the line below marked -->. Place the
626626 cursor on the first dash.
@@ -663,7 +663,7 @@ _________________________________________________________________
663663=================================================================
664664
665665 Type . to repeat the last insert command.
666− Type A-. to repeat the f/t selection.
666+ Type A-. to repeat the last f / t selection.
667667
668668 1. Move the cursor to the line below marked -->.
669669 2. Make a change, insertion or appendage and repeat it with . .
@@ -685,12 +685,12 @@ _________________________________________________________________
685685=================================================================
686686
687687 * Type f / F to extend selection up to & including a character.
688− * Type t / T to extend selection until a character.
688+ * Type t / T to extend selection until a character.
689689
690690 * Type r to replace selected characters.
691691
692692 * Type . to repeat the last insertion.
693− * Type A-. to repeat the last f / t selection.
693+ * Type A-. to repeat the last f / t selection.
694694
695695
696696
@@ -703,7 +703,117 @@ _________________________________________________________________
703703
704704
705705=================================================================
706−= 7.1 CHANGING CASE =
706+= 7.1 REPLACE WITH YANKED TEXT =
707+=================================================================
708+
709+ Type R to replace the selection with previously yanked text.
710+
711+ 1. Move the cursor to the line below marked -->.
712+ 2. Type w to select "watermelons" and then y to yank it.
713+ 3. Select "oranges" with w.
714+ 4. Type R to replace "oranges" with "watermelons"
715+
716+
717+ --> I like watermelons because oranges are refreshing.
718+ I like watermelons because watermelons are refreshing.
719+
720+
721+
722+
723+
724+
725+
726+
727+=================================================================
728+= 7.2 JOINING LINES =
729+=================================================================
730+
731+ Type J to join together lines in selection.
732+
733+ 1. Move the cursor to the line below marked -->.
734+ 2. Type x four times or 4x to select all four lines.
735+ 3. Type J to join the lines together.
736+
737+ --> This sentence
738+is spilling over
739+onto other
740+lines.
741+
742+ This sentence is spilling over onto other lines.
743+
744+
745+
746+
747+
748+
749+=================================================================
750+= 7.3 INDENTING LINES =
751+=================================================================
752+
753+ Type > to indent a line and < to outdent it.
754+
755+ 1. Move the cursor to the line below marked -->.
756+ 2. Move down to the second line and type > to indent it.
757+ 3. Move to the third line and type < to outdent it.
758+
759+ --> These lines
760+ are indented
761+ very poorly.
762+
763+ These lines
764+ are indented
765+ much better.
766+
767+
768+
769+
770+
771+=================================================================
772+= 7.4 INCREMENTING AND DECREMENTING =
773+=================================================================
774+
775+ Type C-a to increment the number under selection.
776+ Type C-x to decrement the number under selection.
777+
778+ 1. Move the cursor to the third line below marked -->.
779+ 2. Type C-a to increment the second point marked 2.
780+ 3. Repeat for the point marked 3.
781+ 4. Move to the last point and type C-x to decrement the 6.
782+
783+ --> 1) First point.
784+ --> 2) Added point.
785+ --> 2) Next point.
786+ --> 3) Another point.
787+ --> 6) Last point.
788+
789+ Note: If there isn't a number under the selection the cursor
790+ will jump to the next number in the line and act on it.
791+
792+
793+=================================================================
794+= CHAPTER 7 RECAP =
795+=================================================================
796+
797+ * Type R to replace the selection with yanked text.
798+
799+ * Type J to join lines in selection.
800+
801+ * Type < and > to indent / outdent lines.
802+
803+ * Type C-a to increment the selected number.
804+ * Type C-x to decrement the selected number.
805+
806+
807+
808+
809+
810+
811+
812+
813+
814+
815+=================================================================
816+= 8.1 CHANGING CASE =
707817=================================================================
708818
709819 Type ~ to switch the case of all selected letters.
@@ -725,7 +835,7 @@ _________________________________________________________________
725835 --> THIS sentence should ALL BE IN uppercase!
726836
727837=================================================================
728−= 7.2 MACROS =
838+= 8.2 MACROS =
729839=================================================================
730840
731841 Macros are a way to record a set of actions you want to repeat.
@@ -747,7 +857,7 @@ _________________________________________________________________
747857 This sentence doesn't have it's first and last word.
748858
749859=================================================================
750−= CHAPTER 7 RECAP =
860+= CHAPTER 8 RECAP =
751861=================================================================
752862
753863 * Type ~ to alternate case of selected letters.
@@ -769,7 +879,7 @@ _________________________________________________________________
769879
770880
771881=================================================================
772−= 8.1 USING THE JUMPLIST =
882+= 9.1 USING THE JUMPLIST =
773883=================================================================
774884
775885 Helix can keep track of "jumps" which are big movements, like
@@ -791,7 +901,7 @@ _________________________________________________________________
791901
792902
793903=================================================================
794−= CHAPTER 8 RECAP =
904+= CHAPTER 9 RECAP =
795905=================================================================
796906
797907 * Type C-s to save position to the jumplist.
@@ -812,72 +922,6 @@ _________________________________________________________________
812922
813923
814924
815−=================================================================
816−= 9.1 JOINING LINES =
817−=================================================================
818−
819− Type J to join together lines in selection.
820−
821− 1. Move the cursor to the line below marked -->.
822− 2. Type x four times or 4x to select all four lines.
823− 3. Type J to join the lines together.
824−
825− --> This sentence
826−is spilling over
827−onto other
828−lines.
829− This sentence is spilling over onto other lines.
830−
831− Note: J works on all lines in selection, so typing xxx or 3x to
832− select the lines and then a single J will work the same.
833−
834−
835−
836−
837−=================================================================
838−= 9.2 INDENTING LINES =
839−=================================================================
840−
841− Type > to indent a line and < to outdent it.
842−
843− 1. Move the cursor to the line below marked -->.
844− 2. Move down to the second line and type > to indent it.
845− 3. Move to the third line and type < to outdent it.
846−
847− --> These lines
848− are indented
849− very poorly.
850−
851− These lines
852− are indented
853− much better.
854−
855−
856−
857−
858−
859−=================================================================
860−= CHAPTER 9 RECAP =
861−=================================================================
862−
863− * Type J to join lines within selection.
864−
865− * Type > and < to indent and outdent selected lines.
866−
867−
868−
869−
870−
871−
872−
873−
874−
875−
876−
877−
878−
879−
880−
881925=================================================================
882926 This tutorial is still a work-in-progress.
883927 More sections are planned.