Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	autolearn_force=no version=3.4.1
X-Biglobe-Sender: <takimoto-j@kba.biglobe.ne.jp>
Content-Type: text/plain; charset=gb18030
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Subject: Re: di" or ci" in zsh 5.2
From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
X-Priority: 3
In-Reply-To: <tencent_28C0660009404A8858DE9AE1@qq.com>
Date: Tue, 28 Jun 2016 01:54:25 +0900
Content-Transfer-Encoding: quoted-printable
Message-Id: <3C63F9BA-C572-418B-AD67-29EC3E0CD3F9@kba.biglobe.ne.jp>
References: <tencent_28C0660009404A8858DE9AE1@qq.com>
To: zsh-workers@zsh.org
X-Mailer: Apple Mail (2.1878.6)
X-Biglobe-Spnum: 65217
X-Seq: zsh-workers 38768


2016/06/27 15:58, =D5=C5=BC=CC=B9=FA <75199165@qq.com> wrote:

> i use zsh 5.2.
> 5.2 support vim style text object. ciw or diw work=A1=A3but di" or ci" =
not=A1=A3
> should i setup zsh more to support this ?

Yes.
If you want to use the 'select-quoted' widget (and map it to i", a", =
etc.),
please look into the comment at the top of =
'Functions/Zle/select-quoted'.
There you will find the commands you need to add to your .zshrc
('autoload -U select-quoted' and the following six lines).

Functions/Zle/{select-bracketed,surround} have similar comments, which
may be also useful for you.

Jun


