From d40ca1ba8c3e9e99634816622f700c2a57410672 Mon Sep 17 00:00:00 2001 From: Adrian Reghitto Date: Tue, 14 Jan 2025 15:01:30 -0700 Subject: [PATCH 1/3] Add semicolon for movement, plus optional rebinding for the original binding --- config.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.toml b/config.toml index 4e35f54..369649a 100644 --- a/config.toml +++ b/config.toml @@ -25,6 +25,8 @@ V = ["select_mode", "extend_to_line_bounds"] C = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection", "insert_mode"] D = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection"] S = "surround_add" # Would be nice to be able to do something after this but it isn't chainable +";"= "repeat_last_motion" +# "C-;" = "collapse_selection" # Clipboards over registers ye ye x = "delete_selection" From cb374957f323e8fe54a480d93b54f1ac325f57c6 Mon Sep 17 00:00:00 2001 From: Adrian Reghitto Date: Tue, 14 Jan 2025 15:04:04 -0700 Subject: [PATCH 2/3] Add HML for movement --- config.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.toml b/config.toml index 369649a..847a4ac 100644 --- a/config.toml +++ b/config.toml @@ -28,6 +28,10 @@ S = "surround_add" # Would be nice to be able to do something after this but it ";"= "repeat_last_motion" # "C-;" = "collapse_selection" +H = "goto_window_top" +M = "goto_window_center" +L = "goto_window_bottom" + # Clipboards over registers ye ye x = "delete_selection" p = ["paste_clipboard_after", "collapse_selection"] From b2afd802b4dac0f8d1010fdf7bbb587da6e16e5e Mon Sep 17 00:00:00 2001 From: Adrian Reghitto Date: Tue, 14 Jan 2025 15:06:44 -0700 Subject: [PATCH 3/3] Make gj and gk behave the same as vim --- config.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.toml b/config.toml index 847a4ac..94d094c 100644 --- a/config.toml +++ b/config.toml @@ -70,6 +70,11 @@ esc = ["collapse_selection", "keep_primary_selection"] j = "move_line_down" k = "move_line_up" +# Make gj and gk behave the same +[keys.normal.g] +j = "move_visual_line_down" +k = "move_visual_line_up" + # Extend and select commands that expect a manual input can't be chained # I've kept d[X] commands here because it's better to at least have the stuff you want to delete # selected so that it's just a keystroke away to delete