> I already suggested exactly this: > https://marc.info/?l=openbsd-tech&m=152727379111353&w=2 >
This tutorial doesn't mention using different modes, so it is unclear to new user how to switch to that mode. I'm extending your diff to make less confusions (plus date needs update, I'm using my local time, so don't bother if you have 26-th of May at your clock): Index: tutorial =================================================================== RCS file: /cvs/src/usr.bin/mg/tutorial,v retrieving revision 1.17 diff -u -p -r1.17 tutorial --- tutorial 30 May 2017 07:11:40 -0000 1.17 +++ tutorial 26 May 2018 21:12:40 -0000 @@ -207,28 +207,6 @@ type C-g to cancel the operation. To paste the region that you've cut or copied above, simply move your cursor to the desired location and then type C-y to paste it. -Status Line ------------ - -At the bottom of your screen is a reverse highlighted line. This is the status -line and lets you know some useful information about the file you're editing. - -On the status line, you should see "Mg: tutorial". This lets you know that -you're editing a file named "tutorial". If you've edited this file and not -saved it, it should have a "**" to the left of those words. If this file is -read-only, you should see a "%%" to the left of those words. - -To the right of the status line, you should see L followed by digits and C -followed by some more digits. These indicate the line number and column number -of the file that your cursor is currently on. If you move the cursor around, -you should see the line and column number change. - -In the middle of the screen, you should see the word "(fundamental)" which -indicates that the current editing mode is "fundamental-mode". The mg editor -also supports a c-mode that is more suited to editing C code. There are also -some other useful editing modes for different situations. See the man page -for mg(1) to learn about the various editing modes. - Opening and Saving Files ------------------------ @@ -324,6 +302,29 @@ the replace-text command. To cancel this To see a list of all available mg(1) commands, consult the man page. +Status Line +----------- + +At the bottom of your screen is a reverse highlighted line. This is the status +line and lets you know some useful information about the file you're editing. + +On the status line, you should see "Mg: tutorial". This lets you know that +you're editing a file named "tutorial". If you've edited this file and not +saved it, it should have a "**" to the left of those words. If this file is +read-only, you should see a "%%" to the left of those words. + +To the right of the status line, you should see L followed by digits and, if +column-number-mode is enabled (M-x col TAB Enter), C followed by some more +digits. These indicate the line number and column number of the file that your +cursor is currently on. If you move the cursor around, you should see the line +and column number change. + +In the middle of the screen, you should see the word "(fundamental)" which +indicates that the current editing mode is "fundamental-mode". The mg editor +also supports a c-mode that is more suited to editing C code. There are also +some other useful editing modes for different situations. See the man page +for mg(1) to learn about the various editing modes. + Exiting mg ---------- @@ -346,7 +347,7 @@ Author Info ----------- Original Author of this document: Mayukh Bose, -Date last updated: 2015-12-21 +Date last updated: 2018-05-27 Copyright ---------