aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--book/src/keymap.md4
-rw-r--r--helix-term/src/commands.rs2
-rw-r--r--helix-term/src/keymap.rs3
3 files changed, 4 insertions, 5 deletions
diff --git a/book/src/keymap.md b/book/src/keymap.md
index 82cd9f33..234766ca 100644
--- a/book/src/keymap.md
+++ b/book/src/keymap.md
@@ -17,8 +17,6 @@
| f | find next char |
| T | find 'till previous char |
| F | find previous char |
-| ^ | move to the start of the line |
-| $ | move to the end of the line |
| m | Jump to matching bracket |
| PageUp | Move page up |
| PageDown | Move page down |
@@ -118,6 +116,8 @@ Jumps to various locations.
|-----|-----------|
| g | Go to the start of the file |
| e | Go to the end of the file |
+| h | Go to the start of the line |
+| l | Go to the end of the line |
| t | Go to the top of the screen |
| m | Go to the middle of the screen |
| b | Go to the bottom of the screen |
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index c5493cd2..796493ea 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1269,6 +1269,8 @@ pub fn goto_mode(cx: &mut Context) {
match ch {
'g' => move_file_start(cx),
'e' => move_file_end(cx),
+ 'h' => move_line_start(cx),
+ 'l' => move_line_end(cx),
'd' => goto_definition(cx),
'y' => goto_type_definition(cx),
'r' => goto_reference(cx),
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index 07012208..b1d8428b 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -153,9 +153,6 @@ pub fn default() -> Keymaps {
//
key!('r') => commands::replace,
- key!('^') => commands::move_line_start,
- key!('$') => commands::move_line_end,
-
key!('w') => commands::move_next_word_start,
key!('b') => commands::move_prev_word_start,
key!('e') => commands::move_next_word_end,