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

Re: Bug: zsh vim textobjects and slash



Daniel - Thanks!
These little tips are life changing for me :) wish there was some doc with
all those vim related "fixes" for the common user.
Again - thanks for the quick and helpful response.
Itay

On Sat, May 19, 2018 at 4:57 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
wrote:

> 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