Make arrow keys and page up/down work in insert mode

imgbot
wojciechkepka 4 years ago committed by Nathan Vegdahl
parent c5a2fd5da3
commit 1c25852021

@ -321,6 +321,12 @@ impl Default for Keymaps {
key!(Delete) => Command::delete_char_forward, key!(Delete) => Command::delete_char_forward,
key!(Enter) => Command::insert_newline, key!(Enter) => Command::insert_newline,
key!(Tab) => Command::insert_tab, key!(Tab) => Command::insert_tab,
key!(Left) => Command::move_char_left,
key!(Down) => Command::move_line_down,
key!(Up) => Command::move_line_up,
key!(Right) => Command::move_char_right,
key!(PageUp) => Command::page_up,
key!(PageDown) => Command::page_down,
ctrl!('x') => Command::completion, ctrl!('x') => Command::completion,
ctrl!('w') => Command::delete_word_backward, ctrl!('w') => Command::delete_word_backward,
)), )),

Loading…
Cancel
Save