Files
neovim/runtime/tutor/zh/vim-01-beginner.tutor.json
brianhuster 2124146164 fix(tutor): use legacy syntax for lesson 3.1 of vim-01-beginner.tutor
Problem:
- Extmark breaks lesson 3.1 of vim-01-beginner.tutor because when users
  delete the line and put it elsewhere, the extmark doesn't move to the
  put location.
- This doesn't mean the extmark implementation is bad though (note that
  thanks to extmark, for the first time, we can make lesson 2.6 really
  interactive), it's just that the tutor format has never been made for
  kinds of lessons like lesson 3.1, which is why all "expected" in that
  lesson are -1, which also means that lesson is not interactive in the
  first place. Also see lesson 2.1.3 in vim-02-beginner, where the mark
  is just used to mark the first line of the exercise, which also prove
  my point.

Solution:
- For a not-really-interactive lesson like lesson 3.1, just use legacy
  syntax. I borrow the old vimtutor's `--->` to mark the exercises of
  the lesson.
- Less redundant interactive marks also make the json files smaller and
  more maintainable.
2025-07-19 22:40:28 +07:00

44 lines
1.9 KiB
JSON

{
"expect": {
"96": "The cow jumped over the moon.",
"97": "The cow jumped over the moon.",
"117": "There is some text missing from this line.",
"118": "There is some text missing from this line.",
"135": "There is some text missing from this line.",
"136": "There is some text missing from this line.",
"137": "There is also some text missing here.",
"138": "There is also some text missing here.",
"204": "There are some words that don't belong in this sentence.",
"205": "There are some words that don't belong in this sentence.",
"221": "Somebody typed the end of this line twice.",
"259": -1,
"276": "This line of words is cleaned up.",
"292": "1) Roses are red,",
"293": "",
"294": "3) Violets are blue,",
"295": "",
"296": "",
"297": "6) Sugar is sweet",
"298": "7) And so are you.",
"318": "Fix the errors on this line and replace them with undo.",
"319": "Fix the errors on this line and replace them with undo.",
"384": "When this line was typed in, someone pressed some wrong keys!",
"385": "When this line was typed in, someone pressed some wrong keys!",
"405": "This line has a few words that need changing using the change operator.",
"406": "This line has a few words that need changing using the change operator.",
"426": "The end of this line needs to be corrected using the c$ command.",
"427": "The end of this line needs to be corrected using the c$ command.",
"484": -1,
"502": -1,
"524": "Usually the best time to see the flowers is in the spring.",
"702": -1,
"707": -1,
"723": "This line will allow you to practice appending text to a line.",
"724": "This line will allow you to practice appending text to a line.",
"740": "Adding 123 to 456 gives you 579.",
"741": "Adding 123 to 456 gives you 579.",
"765": "a) This is the first item.",
"766": "b) This is the second item."
}
}