From 62cade5ce50c92a74f9a10d4ac8d2b553e224624 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Mon, 25 Aug 2025 15:05:03 +0200 Subject: [PATCH] feat(alacritty): reintroduce Vi mode, set custom colors for it --- .config/alacritty/alacritty.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml index 0d5b13a..8a8b478 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.toml @@ -9,7 +9,8 @@ size = 18 # offset = { x = 0, y = 0 } [window] -option_as_alt = "Both" +# option_as_alt = "Both" +option_as_alt = "None" decorations = "None" padding = { x = 12, y = 5 } dynamic_padding = true @@ -31,8 +32,11 @@ focused_match = { foreground = "#dedede", background = "#007a61" } background = "#007a61" foreground = "#00dcaf" -[keyboard] +[colors.vi_mode_cursor] +text = "#dedede" +cursor = "#007a61" +[keyboard] bindings = [ # Required to make Ctrl+/ work on macOS (used in Telescope) { chars = "\u001F", key = "Slash", mods = "Control" }, @@ -44,6 +48,7 @@ bindings = [ { key = "PageDown", mods = "Shift", action = "ScrollPageDown" }, # Disable Cmd+w to avoid accidental closing. Disabling Cmd+q needs more work { key = "w", mods = "Command", action = "None" }, + { key = "v", mods = "Alt", action="ToggleViMode" }, ] [general]