mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00

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.
4 lines
50 B
Lua
4 lines
50 B
Lua
vim.cmd [[
|
|
syntax match tutorExpect /^--->.*$/
|
|
]]
|