Skip to content

Conversation

@MrZLeo
Copy link

@MrZLeo MrZLeo commented Jan 3, 2026

No description provided.

}
zle -N double-dot-contract
bindkey ${key_info[Backspace]} double-dot-contract
bindkey -M viins ${key_info[Backspace]} double-dot-contract
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous command, without the -M option, will bind the key to the main keymap. In case of vi mode, the main keymap is already viins, so the commands you're adding are redundant.

@MrZLeo
Copy link
Author

MrZLeo commented Jan 4, 2026

It seems like two commands I added are redundant...

However, I did meet an issue that every time I enter vi command mode and shift back to insert mode, I cannot use backspace to delete the things I typed before. After I added these commands, my problem was solved.

I'm not sure yet...

@MrZLeo
Copy link
Author

MrZLeo commented Jan 4, 2026

Screen.Recording.2026-01-04.at.10.15.50.mov

@ericbn
Copy link
Member

ericbn commented Jan 5, 2026

Do you have

bindkey -v

at the beginning of your .zshrc file, way before source ${ZIM_HOME}/init.zsh?

@MrZLeo
Copy link
Author

MrZLeo commented Jan 5, 2026

Ah, I'm afraid not. I actually bindkey -v after source ${ZIM_HOME}/init.zsh

@ericbn ericbn closed this in 7d246cb Jan 5, 2026
@ericbn
Copy link
Member

ericbn commented Jan 5, 2026

I've updated the module documentation to clarify this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants