-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Vim like movement commands
This adds new movement commands to allow h/l to be rebound so that they only operate within a single line like Vim does. This however cannot be fully emulated in Helix as Helix will happily place the character on the newline rather than "before" like Vim does. This means that if one moves to the right, "i" is needed to insert rather than "a" what a Vim user would expect. "a" would still put the character into the new line. The "move_from_line_end" command is provided which can optionally be used after all movements to move the character one back if needed. Unfortunately this also means that the cursor is repositioned which causes it to forget the original position it had which makes movements between lines annoying as the cursor has a left drift.
- Loading branch information
Showing
2 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters