1

I use alacritty and currently, I have these key binding

key_bindings:
  # (macOS only)
  - { key: N,        mods: Command, action: SpawnNewInstance             }
  - { key: F,        mods: Command, command:
    { program: "osascript",
      args: ["/Users/sand/.dotfiles/alacritty-fullscreen.applescript"] } }
  # ...
  - { key: Delete,                  chars: "\x1b[3~"                     }

I also using tmux with

# Needed for CTRL-Left/Right to work.
setw -g xterm-keys on

# Use vi key bindings in copy mode.
setw -g mode-keys vi

# Search mode vi
set-window-option -g mode-keys vi

I would like to have vi binding for zsh, but the thing I missed the most is option+delete will delete 1 word backwards in INSERT mode like I have in zsh emacs mode. I know that I can use to delete word but I really get used to Option-Delete. It's also consistent with what I used in the browser textbox, google doc... to delete 1 word so I'd like to keep it. How could I achieve this?

And I also notice that if I enter some text in zsh vi mode, hit ESC to go to NORMAL mode, then back to INSERT mode using i, I can not delete previously entered text using delete key anymore. I can only enter new characters, or back to NORMAL mode and cc, dd to delete text. Any idea?

You must log in to answer this question.

Browse other questions tagged .