egaga / openvim

Interactive tutorial for Vim.
MIT License
581 stars 74 forks source link

'$' incorrectly shows cursor at end of line #121

Open jasonbtiller opened 1 month ago

jasonbtiller commented 1 month ago

Thank you for freely providing this tutorial - I've enjoyed working through it. We emacs guys always need to keep learning. :)

On page "Go to start/end of line, 0 and $'" pressing the '$' key shows the cursor blinking at the end of the line, past the final character. Here is a screen recording showing the behavior:

'$' moves past last character

But that's the actual vi/vim behavior, where '$' places the cursor on the last character of the line, not past it. I found this confusing and I wondered if it might affect others.

unelma commented 1 month ago

Thank you for reporting.

It definitely is a bug, and I did reproduce it locally. (It seems to occur when it's the last line of the tutorial text. Works in sandbox: https://openvim.com/sandbox.html)

The project is nowadays quite developed in a slow paced manner, if at all, though.

Learning is the best, so glad you enjoyed it!