hackmdio / hackmdio/hackmd-io-issues

Feature Request: navigate wrapped lines as individual rows in Vim mode

Open
#389 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
40
Forks
9
PR merge metrics
No merged PRs in 30d

Description

**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.

![image](https://github.com/user-attachments/assets/e28f2a76-0688-4b29-adb6-325fc65889cd)

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.