jeffreytse / zsh-vi-mode

💻 A better and friendly vi(vim) mode plugin for ZSH.
MIT License
3.13k stars 109 forks source link

macos can't use `Ctrl-h` to delete character on somewhere in the insert mode #201

Closed hongcn5 closed 1 year ago

hongcn5 commented 1 year ago

General information

Basic examination

Problem description

can't use Ctrl-h to delete character on anywhere in the insert mode after normal mode into insert mode

Reproduction steps

  1. type or paste command, such as setopt
  2. escape from insert mode to normal mode, move the cursor to anywhere, eg: set | opt
  3. and then press a or A to insert mode, use Ctrl-h to delete character, only can delete character after set

Expected behavior

  1. type or paste command, such as setopt
  2. escape from insert mode to normal mode, move the cursor to anywhere, eg: set | opt
  3. and then press a or A to insert mode
  4. use Ctrl-h delete character on anywhere

.zshrc config

zvm_before_init() { local ncur=$(zvm_cursor_style $ZVM_NORMAL_MODE_CURSOR) ZVM_INSERT_MODE_CURSOR=$ncur'\e\e]12;#929292\a' ZVM_NORMAL_MODE_CURSOR=$ncur'\e\e]12;#008800\a' } zvm_config() { ZVM_LINE_INIT_MODE=$ZVM_MODE_INSERT ZVM_VI_ESCAPE_BINDKEY=jk ZVM_VI_HIGHLIGHT_BACKGROUND=#519e97 } source /opt/homebrew/opt/zsh-vi-mode/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh

hongcn5 commented 1 year ago

sorry, i misunderstand the feature of shortcut 'ctrl-h'