From 0758838cce89643315cf54bf566dc3fda420a08a Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Sat, 24 Aug 2024 18:57:43 +0200 Subject: [PATCH] feat(vim): add Shift-i keybind for vim normal mode --- src/tui/mode/input/vim/normal.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tui/mode/input/vim/normal.zig b/src/tui/mode/input/vim/normal.zig index 83617f5..7ad80f7 100644 --- a/src/tui/mode/input/vim/normal.zig +++ b/src/tui/mode/input/vim/normal.zig @@ -196,6 +196,7 @@ fn mapPress(self: *Self, keypress: u32, egc: u32, modifiers: u32) !void { ';' => self.cmd("open_command_palette", .{}), 'n' => self.cmd("goto_prev_match", .{}), 'a' => self.seq(.{ "move_end", "enter_mode" }, command.fmt(.{"vim/insert"})), + 'i' => self.seq(.{ "smart_move_begin", "enter_mode" }, command.fmt(.{"vim/insert"})), '4' => self.cmd("move_end", .{}), 'g' => if (self.count == 0) self.cmd("move_buffer_end", .{})