Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug: zsh vim textobjects and slash
- X-seq: zsh-workers 42808
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Itay Shakury <itaysk@xxxxxxxxxxxx>, Oliver Kiddle <okiddle@xxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Bug: zsh vim textobjects and slash
- Date: Sat, 19 May 2018 13:56:59 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=PvQ30R vkP0/kFJHQBhOpMCa4FtTL5Gf4JS2LnWIHEJc=; b=pX9b6eWRyw0ypcL6BYH3mL Hmk0RKfeIruXbEAF+oKFzMredyoAJGcXzxHVOYbo03xYRPnRBnNirgk4aguSOq7w QM+hX+CQ4qmYtmEJeYdmGgZ7hT6d06SvzsLPslHfnubYhWjWCeyxUgd7utXh3rmK 2XJXjne9CL/M9RwjPFMvqIyGMft9r9/AcYESC/TBqfYEvbVF0Sk7Oc54NXFjOFDI /PQAS+sOFLl6s7B7QATRauixk1TfBGAn181Vhhv0QcNGXbPULNuYpmUBnqrHtOO8 79yKPCI+kbsQB46P+zJkrrMnXXxfBfhb0xqMafDQIIF+YYcZNahvqfhEYOqqGvmQ ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=PvQ30R vkP0/kFJHQBhOpMCa4FtTL5Gf4JS2LnWIHEJc=; b=iO5/AW/uXGweeAopAVu87/ Y5EUSuNQC/ym7o62GFQACjvPfmD/IU842wQEf146S5j54irn0YFQrVO0ATvaUU+q K+NPQRQ60ovqja54PFonqSyO1BwdeuswP4qgr4NI/8LwvriqlT0Mn8ao73wYnG5Y MiWCUZtiEAjhGMZvnpjibuVzWPPpcUkRl3PcX/Rs0ESDU/Xh8SdCpkaJeJCEkN/N 9/IbTBBbmvHdbni5jPjb3gJ+Hf9RrhX5ow0DZx4yVB/KLND2Xus+Njr280qZo3a7 h4JQpq/3dtmLAO6wV29vtU85JRxy9bddFBSOhIe4sRhsa6Wq++b3+WB1TLAulWsA ==
- In-reply-to: <CAHOaShu0-8GO9hn=M+70M8g-CyAcb-obfFP3H48qmd1SW=oHZw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAHOaShs8sVQmQ=GikZGvH+XXe9q_L5Hh+hHD4skftqVgiuLPhg@mail.gmail.com> <29015.1526646368@thecus> <CAHOaShue=1uvWqvyqwNvDOiEHUfBJpKLbkRFrAaWYOtZidjwKw@mail.gmail.com> <CAHOaShu0-8GO9hn=M+70M8g-CyAcb-obfFP3H48qmd1SW=oHZw@mail.gmail.com>
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