Zsh Mailing List Archive
Messages sorted by:
Re: Bug: zsh vim textobjects and slash
- X-seq: zsh-workers 42800
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Itay Shakury <itaysk@xxxxxxxxxxxx>
- Subject: Re: Bug: zsh vim textobjects and slash
- Date: Fri, 18 May 2018 14:26:08 +0200
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1526646971; bh=wJOSnYoAkdFBZyyvltzzuSURdexrD4h0t8eE/0PGUOo=; h=From:References:To:Subject:Date:From:Subject; b=sUtbbKXDoxtnS7CuPld3Akx9DDI/YuMOkR70lCxwLWWHjYOFPI4FVrsMg9kW/F4MljgYbqPXHOJB3AQXyZVkrNjDZ1Y32186wANXf6+AVMIdOkyz7UT70d7m07DOHSWz12gpJnzLfgjX9i1sUV29FF1qjITNFLKh+XBVMxEFtNzozDawcFKVOvc3xmrSMeKJfmelFqEYSxwFXSCG42EJLVRySitQSLJ0Zce9z9uY//tTekwE2qJFjpVgIfSNqUDRo1r5M7qwO3g8aBQhteygcj/k0n+ql7m3TIUbgaXf9MFJNMP3XiKPWz9afTON2773j5ZvnCXS8E1UXROsntThUg==
- In-reply-to: <CAHOaShs8sVQmQ=GikZGvH+XXe9q_L5Hh+hHD4skftqVgiuLPhg@mail.gmail.com>
- List-help: <mailto:email@example.com>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- List-unsubscribe: <mailto:email@example.com>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAHOaShs8sVQmQ=GikZGvH+XXe9q_L5Hh+hHD4skftqVgiuLPhg@mail.gmail.com>
Itay Shakury wrote:
> Example: if I'm typing `ls /var/lib/docker` and want to change 'lib' to
> 'run', I would place the cursor in the 'lib' word, and do `ciw`. In vim
> this would delete the 'lib' word and put me in insert mode. In zsh it
> deletes the entire path ('var/lib/docker').
This bug doesn't occur with a default zsh setup. I do, however, have
a theory as to the cause. I suspect that you are using a plugin that
redefines every zle widget (every key in effect).
If you do "bindkey -M viopp iw", you should see:
And if you do "zle -lL select-in-word", you should get nothing. If you
do get something, it is likely that select-in-word has been redefined.
The trouble is that internally, one function handles all of iw, iW, aw
and aW. It is checking whether the invoked widget is select-in-word. But
if you've redefined that, the check returns false and you get iW
I think this has been fixed in a6135f6 (41191) which is in zsh 5.4.
I'm not quite sure of how to remove the custom select-in-word widget
other than by disabling the entire plugin. zle -D select-in-word seems
to cause other problems. If I run that after sourcing
zsh-syntax-highlighting, I can get a seg fault, including with 5.5.
Messages sorted by: