Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug: zsh vim textobjects and slash



Itay Shakury wrote on Sat, 19 May 2018 15:19 +0300:
> I type 'kubectl get pods', and want to delete the word 'get'. in normal
> mode I move the cursor to right after the word 'get', then 'i' for insert
> mode and and press backspace - doesn't work.

That's vi compatible behaviour.  (Vim does it too in its Vi-compatible
mode, see :help 'backspace' there.)  You can avoid it by binding your
backspace key to backward-delete-char rather than vi-delete-char:

eval "$(bindkey -M viins -L | sed -n -e 's/vi-backward-delete-char/backward-delete-char/p')"

Cheers,

Daniel



Messages sorted by: Reverse Date, Date, Thread, Author