Skip to content

Commit

Permalink
assign nvim-scroll to C-d and C-u (half page scrolls)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderDickie committed Aug 20, 2023
1 parent db6db3e commit 3d4038e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions helix-term/src/keymap/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
"esc" => normal_mode,
"C-b" | "pageup" => page_up,
"C-f" | "pagedown" => page_down,
"C-u" => half_page_up,
"C-d" => half_page_down,
"C-u" => page_cursor_half_up,
"C-d" => page_cursor_half_down,

"C-w" => { "Window"
"C-w" | "w" => rotate_view,
Expand Down Expand Up @@ -287,8 +287,8 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
"j" | "down" => scroll_down,
"C-b" | "pageup" => page_up,
"C-f" | "pagedown" => page_down,
"C-u" | "backspace" => half_page_up,
"C-d" | "space" => half_page_down,
"C-u" => page_cursor_half_up,
"C-d" => page_cursor_half_down,

"/" => search,
"?" => rsearch,
Expand All @@ -304,9 +304,8 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
"j" | "down" => scroll_down,
"C-b" | "pageup" => page_up,
"C-f" | "pagedown" => page_down,
"C-u" | "backspace" => half_page_up,
"C-d" | "space" => half_page_down,

"C-u" => page_cursor_half_up,
"C-d" => page_cursor_half_down,
"/" => search,
"?" => rsearch,
"n" => search_next,
Expand Down

0 comments on commit 3d4038e

Please sign in to comment.