LukeSmithxyz / voidrice

My dotfiles (deployed by LARBS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"bindkey -v '^?' backward-delete-char" in .zshrc

levdopa opened this issue · comments

I don't get how to use it or what it does

This binds using some vi like modes available in zsh, the backspace key to the function named backward-delete-char.

See man zshall, search (using /) for viins.
Also see https://en.wikipedia.org/wiki/C0_and_C1_control_codes search for ^?

Edit: rephrase for clarification

@DukeTuxem
My backspace key works normally when this line is not on my zshrc; I don't see any difference in behavior when this line is added or removed. Thanks for the control code wiki page.

You are welcome.
It depends on your terminal emulator actually, some have divergence on how this behavior is implemented, this can be seen as an explicit setting to try to just bind this control code to backward-delete-char on whatever terminal emulator.

For some historical background:
https://git.suckless.org/st/file/FAQ.html#l108

Edit: ^? can be checked on your terminal emulator pressing Ctrl+V, then the backspace key.