hackmd-io-issues
hackmd-io-issues copied to clipboard
Feature Request: navigate wrapped lines as individual rows in Vim mode
Is your feature request related to a problem? Please describe.
When Vim mode is enabled, lines which are wrapped into multiple editor rows behave like a single long line, making it difficult to navigate and edit the middle parts of the line.
So, for example, in the screenshot example, if the cursor is set on top of the laboris word and in normal mode, pressing j does not move the cursor to the word reprehenderit, but instead directly to line number 2, which is 4 editor rows below. Similarly, pressing 0 does not move the cursor to the beginning of the word nostrud, but to the word Lorem 3 rows above.
In contrast, when Sublime mode is enabled, each row in the wrapped line can be navigated individually with the arrows or Home+End keys.
Describe the solution you'd like
I would like navigation keys h j k l $ 0... to allow moving the cursor between different rows of the wrapped long line like arrows do in Sublime mode.