Repository: neovim/neovim
File: test/functional/plugin/tutor_spec.lua (Lua)

Code before:
      {0:  }- {6:Learning Vim in 2014}:                                                        |
      {0:  }  {2:https://benmccormick.org/learning-vim-in-2014/}                               |
      {0:  }- {6:Vimcasts}:                                                                    |
      {0:  }  {2:http://vimcasts.org/}                                                         |
      {0:  }- {6:Vim Video-Tutorials by Derek Wyatt}:                                          |
      {0:  }  {2:http://derekwyatt.org/vim/tutorials/}                                         |
      {0:  }- {6:Learn Vimscript the Hard Way}:                                                |
      {0:  }  {2:https://learnvimscriptthehardway.stevelosh.com/}                              |
      {0:  }- {6:7 Habits of Effective Text Editing}:                                          |
      {0:  }  {2:https://www.moolenaar.net/habits.html}                                        |
      {0:  }- {6:vim-galore}:                                                                  |
      {0:  }  {2:https://github.com/mhinz/vim-galore}                                          |
      {0:  }                                                                               |
      {0:  }If you prefer a book, {6:Practical Vim} by Drew Neil is recommended often          |
      {0:  }(the sequel, {6:Modern Vim}, includes material specific to Neovim).                |
      {0:  }                                                                               |
      {0:  }This tutorial was written by Michael C. Pierce and Robert K. Ware, Colorado    |
      {0:  }School of Mines using ideas supplied by Charles Smith, Colorado State          |
      {0:  }University. E-mail: {2:bware@mines.colorado.edu}.                                  |
    ]]

    feed(':983<CR>zt')
    screen:expect(expected)
  end)

  it("Remove a line doesn't affect highlight/mark of other lines", function()
    -- Do lesson 2.6
    feed(':294<CR>zt')
    screen:expect([[
      {0:  }{3:^#}{5: Lesson 2.6: OPERATING ON LINES}                                               |
      {0:  }                                                                               |
      {0:  }{1: Type }{4:dd}{1: to delete a whole line. }                                              |
      {0:  }                                                                               |
      {0:  }Due to the frequency of whole line deletion, the designers of Vi decided       |
      {0:  }it would be easier to simply type two d's to delete a line.                    |
      {0:  }                                                                               |
      {0:  } 1. Move the cursor to the second line in the phrase below.                    |
      {0:  }                                                                               |
      {0:  } 2. Type {2:dd} to delete the line.                                                |
      {0:  }                                                                               |
      {0:  } 3. Now move to the fourth line.                                               |
      {0:  }                                                                               |
      {0:  } 4. Type {9:2}{4:dd} to delete two lines.                                              |
      {0:  }                                                                               |
      {7:✓ }{3:1)  Roses are red,                                                             }|
      {11:✗ }{3:2)  Mud is fun,                                                                }|
      {7:✓ }{3:3)  Violets are blue,                                                          }|
      {11:✗ }{3:4)  I have a car,                                                              }|
      {11:✗ }{3:5)  Clocks tell time,                                                          }|
      {7:✓ }{3:6)  Sugar is sweet                                                             }|
      {7:✓ }{3:7)  And so are you.                                                            }|

Review comment (suggestion):
```suggestion
  it("removing a line doesn't affect highlight/mark of other lines", function()
```

Code after:
      {0:  }- {6:Learning Vim in 2014}:                                                        |
      {0:  }  {2:https://benmccormick.org/learning-vim-in-2014/}                               |
      {0:  }- {6:Vimcasts}:                                                                    |
      {0:  }  {2:http://vimcasts.org/}                                                         |
      {0:  }- {6:Vim Video-Tutorials by Derek Wyatt}:                                          |
      {0:  }  {2:http://derekwyatt.org/vim/tutorials/}                                         |
      {0:  }- {6:Learn Vimscript the Hard Way}:                                                |
      {0:  }  {2:https://learnvimscriptthehardway.stevelosh.com/}                              |
      {0:  }- {6:7 Habits of Effective Text Editing}:                                          |
      {0:  }  {2:https://www.moolenaar.net/habits.html}                                        |
      {0:  }- {6:vim-galore}:                                                                  |
      {0:  }  {2:https://github.com/mhinz/vim-galore}                                          |
      {0:  }                                                                               |
      {0:  }If you prefer a book, {6:Practical Vim} by Drew Neil is recommended often          |
      {0:  }(the sequel, {6:Modern Vim}, includes material specific to Neovim).                |
      {0:  }                                                                               |
      {0:  }This tutorial was written by Michael C. Pierce and Robert K. Ware, Colorado    |
      {0:  }School of Mines using ideas supplied by Charles Smith, Colorado State          |
      {0:  }University. E-mail: {2:bware@mines.colorado.edu}.                                  |
    ]]

    feed(':983<CR>zt')
    screen:expect(expected)
  end)

  it("removing a line doesn't affect highlight/mark of other lines", function()
    -- Do lesson 2.6
    feed(':294<CR>zt')
    screen:expect([[
      {0:  }{3:^#}{5: Lesson 2.6: OPERATING ON LINES}                                               |
      {0:  }                                                                               |
      {0:  }{1: Type }{4:dd}{1: to delete a whole line. }                                              |
      {0:  }                                                                               |
      {0:  }Due to the frequency of whole line deletion, the designers of Vi decided       |
      {0:  }it would be easier to simply type two d's to delete a line.                    |
      {0:  }                                                                               |
      {0:  } 1. Move the cursor to the second line in the phrase below.                    |
      {0:  }                                                                               |
      {0:  } 2. Type {2:dd} to delete the line.                                                |
      {0:  }                                                                               |
      {0:  } 3. Now move to the fourth line.                                               |
      {0:  }                                                                               |
      {0:  } 4. Type {9:2}{4:dd} to delete two lines.                                              |
      {0:  }                                                                               |
      {7:✓ }{3:1)  Roses are red,                                                             }|
      {11:✗ }{3:2)  Mud is fun,                                                                }|
      {7:✓ }{3:3)  Violets are blue,                                                          }|
      {11:✗ }{3:4)  I have a car,                                                              }|
      {11:✗ }{3:5)  Clocks tell time,                                                          }|
      {7:✓ }{3:6)  Sugar is sweet                                                             }|
      {7:✓ }{3:7)  And so are you.                                                            }|