diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-17 08:48:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-17 08:48:13 +0800 |
commit | aac85b8d6b803318d9cbf6e496aac1cd223b4550 (patch) | |
tree | 9fede4e6245fa03a9665ce317adbf4a97f196bb9 | |
parent | 4ab9c5fa46845807a2dc6dd91fc5fb78ccc70856 (diff) | |
download | rneovim-aac85b8d6b803318d9cbf6e496aac1cd223b4550.tar.gz rneovim-aac85b8d6b803318d9cbf6e496aac1cd223b4550.tar.bz2 rneovim-aac85b8d6b803318d9cbf6e496aac1cd223b4550.zip |
docs(tutor): clarify the meaning of ✗ and ✓ (#25204)
Also reformat tutor.tutor.json to use 2-space indent while at it.
-rw-r--r-- | runtime/tutor/en/vim-01-beginner.tutor | 20 | ||||
-rw-r--r-- | runtime/tutor/en/vim-01-beginner.tutor.json | 1 | ||||
-rw-r--r-- | runtime/tutor/tutor.tutor | 10 | ||||
-rw-r--r-- | runtime/tutor/tutor.tutor.json | 66 |
4 files changed, 48 insertions, 49 deletions
diff --git a/runtime/tutor/en/vim-01-beginner.tutor b/runtime/tutor/en/vim-01-beginner.tutor index 3653271000..71b196d189 100644 --- a/runtime/tutor/en/vim-01-beginner.tutor +++ b/runtime/tutor/en/vim-01-beginner.tutor @@ -3,6 +3,7 @@ Neovim is a very powerful editor that has many commands, too many to explain in a tutorial such as this. This tutorial is designed to describe enough of the commands that you will be able to easily use Neovim as an all-purpose editor. + It is IMPORTANT to remember that this tutorial is set up to teach by use. That means that you need to do the exercises to learn them properly. If you only read the text, you will soon forget what is most important! @@ -19,17 +20,16 @@ pressing [<Esc>](<Esc>) and then [u](u) will undo the latest change. This tutorial is interactive, and there are a few things you should know. - Type [<Enter>](<Enter>) on links [like this](holy-grail ) to open the linked help section. - Or simply type [K](K) on any word to find its documentation! -- You can close this help window with `:q`{vim} -- Sometimes you will be required to modify text like - - this here +- You can close this help window with `:q`{vim} `<Enter>`{normal} +When there is a ✗ sign at the left, you will be required to modify text. Once you have done the changes correctly, the ✗ sign at the left will change to ✓. I imagine you can already see how neat Neovim can be. + Other times, you'll be prompted to run a command (I'll explain this later): -~~~ cmd - :help <Enter> -~~~ + + `:help`{vim} `<Enter>`{normal} + or press a sequence of keys ~~~ normal <Esc>0f<Space>d3wP$P @@ -70,19 +70,19 @@ NOTE: The cursor keys should also work. But using hjkl you will be able to 2. Type: - `:q!`{vim} `<Enter>`{normal}. + `:q!`{vim} `<Enter>`{normal} This quits the editor, DISCARDING any changes you have made. 3. Open Neovim and get back here by executing the command that got you into this tutorial. That might be: - :Tutor <Enter> + `:Tutor`{vim} `<Enter>`{normal} 4. If you have these steps memorized and are confident, execute steps 1 through 3 to exit and re-enter the editor. -NOTE: [:q!](:q) <Enter> discards any changes you made. In a few lessons you +NOTE: [:q!](:q) `<Enter>`{normal} discards any changes you made. In a few lessons you will learn how to save the changes to a file. 5. Move the cursor down to Lesson 1.3. diff --git a/runtime/tutor/en/vim-01-beginner.tutor.json b/runtime/tutor/en/vim-01-beginner.tutor.json index fc23a75dae..8f88a3897d 100644 --- a/runtime/tutor/en/vim-01-beginner.tutor.json +++ b/runtime/tutor/en/vim-01-beginner.tutor.json @@ -1,6 +1,5 @@ { "expect": { - "25": -1, "103": "The cow jumped over the moon.", "125": "There is some text missing from this line.", "126": "There is some text missing from this line.", diff --git a/runtime/tutor/tutor.tutor b/runtime/tutor/tutor.tutor index c2d5268e3d..3156b94dbb 100644 --- a/runtime/tutor/tutor.tutor +++ b/runtime/tutor/tutor.tutor @@ -229,11 +229,11 @@ These elements are specified in separate JSON files like this ~~~ json { - "expect": { - "1": "This is how this line should look.", - "2": "This is how this line should look.", - "3": -1 - } + "expect": { + "1": "This is how this line should look.", + "2": "This is how this line should look.", + "3": -1 + } } ~~~ diff --git a/runtime/tutor/tutor.tutor.json b/runtime/tutor/tutor.tutor.json index e8628e2f0e..41995b28fa 100644 --- a/runtime/tutor/tutor.tutor.json +++ b/runtime/tutor/tutor.tutor.json @@ -1,35 +1,35 @@ { - "expect": { - "63": "This is text with **important information**", - "64": "This is text with **important information**", - "71": "TODO: Document '&variable'", - "72": "TODO: Document '&variable'", - "78": "# This is a level 1 header", - "79": "# This is a level 1 header", - "80": "### This is a level 3 header", - "81": "### This is a level 3 header", - "82": "# This is a header with a label {*label*}", - "83": "# This is a header with a label {*label*}", - "108": "A link to help for the ['breakindent']('breakindent') option", - "109": "A link to help for the ['breakindent']('breakindent') option", - "123": "A link to the [Links](*links*) section", - "124": "A link to the [Links](*links*) section", - "139": "A link to [the vim-tutor-mode tutorial](@tutor:tutor)", - "140": "A link to [the vim-tutor-mode tutorial](@tutor:tutor)", - "157": "~~~ viml", - "158": "echom 'the value of &number is'.string(&number)", - "159": "~~~", - "161": "~~~ viml", - "162": "echom 'the value of &number is'.string(&number)", - "163": "~~~", - "188": "~~~ normal", - "189": "d2w", - "190": "~~~", - "192": "~~~ normal", - "193": "d2w", - "194": "~~~", - "206": "`d2w`{normal}", - "207": "`d2w`{normal}", - "244": -1 - } + "expect": { + "63": "This is text with **important information**", + "64": "This is text with **important information**", + "71": "TODO: Document '&variable'", + "72": "TODO: Document '&variable'", + "78": "# This is a level 1 header", + "79": "# This is a level 1 header", + "80": "### This is a level 3 header", + "81": "### This is a level 3 header", + "82": "# This is a header with a label {*label*}", + "83": "# This is a header with a label {*label*}", + "108": "A link to help for the ['breakindent']('breakindent') option", + "109": "A link to help for the ['breakindent']('breakindent') option", + "123": "A link to the [Links](*links*) section", + "124": "A link to the [Links](*links*) section", + "139": "A link to [the vim-tutor-mode tutorial](@tutor:tutor)", + "140": "A link to [the vim-tutor-mode tutorial](@tutor:tutor)", + "157": "~~~ viml", + "158": "echom 'the value of &number is'.string(&number)", + "159": "~~~", + "161": "~~~ viml", + "162": "echom 'the value of &number is'.string(&number)", + "163": "~~~", + "188": "~~~ normal", + "189": "d2w", + "190": "~~~", + "192": "~~~ normal", + "193": "d2w", + "194": "~~~", + "206": "`d2w`{normal}", + "207": "`d2w`{normal}", + "244": -1 + } } |