Skip to content
Discussion options

You must be logged in to vote

Use the move_visual_line_up and move_visual_line_down commands to move within a soft-wrapped line. move_line_up and move_line_down operate on lines without accounting for soft-wrap. See in the default keymap:

"up" => move_visual_line_up,
"down" => move_visual_line_down,

let normal = keymap!({ "Normal mode"
"h" | "left" => move_char_left,
"j" | "down" => move_visual_line_down,
"k" | "up" => move_visual_line_up,
"l" | "right" => move_char_right,

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AndyJado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #8730 on November 06, 2023 15:21.