From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13391 invoked by alias); 27 Oct 2012 09:17:28 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17355 Received: (qmail 21142 invoked from network); 27 Oct 2012 09:17:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=7ID4WH4SjleZZEX8Q/oSmQDfIsvh2T3qGE8GWMdC6e0=; b=VxJmyrjNVyL7athwWUBgs8yRk0Q1ZeMsq4fMWH/uBOeoOsqaq/xmDrmYDto5a0wksG LiuT+d0O5Xz5mtnTG35wqVlApQYw7fd4NBo7awWkM0lBnq+Gi+uhMH/26ATo+bhdjOie LZmRXrnGGTUtN9cJUzax/cbTG84U51SmcpbtvESN3KZU20u0rIRUOkn8saf5hCix6RPp csAkx+DeAm4sd5bTtQBbdNL3ZEcxmWSEn0GfuXbmlZRuLj9g+FDHsWFVyqEoUydZQarQ bnuEDKt87ZJc9kNl6wtEEKiZahlEvTTunD4EPyisbNOuM7qvAr1x+D8XlEfqqthqnnQh SHSQ== MIME-Version: 1.0 In-Reply-To: References: From: shawn wilson Date: Sat, 27 Oct 2012 09:16:57 +0000 Message-ID: Subject: Re: change inside To: Bart Schaefer Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On Sat, Oct 27, 2012 at 6:38 AM, Bart Schaefer wrote: > On Friday, October 26, 2012, shawn wilson wrote: > >> i use vim bindkeys and am quite happy with it. however one feature >> that i use a lot in vim is the 'inside' feature - di, ci, yi, etc. and >> i don't seem to have this on the shell. what's the best way to make >> something like this work and/or could this be implemented to make this >> more like native vim? >> > > You will need to create a custom zle widget, or rather, a set of them. thanks for the pointers. i'll look at what it'll take to script this out. however, (and i didn't ask this directly because i was unsure if there was just a feature i had missed) what is the general idea behind the vi mode in zsh? is this a feature that is meant to stay compatible with bash/tcsh/etc? or is this meant to bring as much of the vim command set as possible, but without being cumbersome into zsh? if the philosophy is the former, than maybe a pull request to oh-my-zsh is the way to go (who is ~10 months behind on merges). however, if it is the later, than this should really be a feature request.