From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5654 invoked by alias); 4 Oct 2013 21:27:22 -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: 18018 Received: (qmail 9803 invoked from network); 4 Oct 2013 21:27:17 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=GCfhfZZ2WCPBiRXQc5CKiNTuWLta+6dAGIW+tS2JwKw=; b=hbjzxRVGDd6TgqYff8GauQk/zpcUgLrwdverxVoNqBJZJAEnmXVK511lEbuL+wnV3f BDbOT7cjLdDctusPfoE7jkOdyr/dqr8h9Kq+QFsRmpdxGL5e9f6QCZh35CljMCX+bCLl sE9ttHS6MWuLXxX0QhmYQUuh0jkyc0mCuJ9y3CRSklPgTl44svOe9+bNHpsOPEB3KFDG C6jO23pl2cX8pKJGE7ttax+xtTQbWizanjWqaumABk5D5ijOFukEn+FkI1IekT/0caqt pC4g/Aj9HwbBXUIHO3a+j1Iio01dLV5Ehseetu9nAYBhDIgseJI1r6qr6Z+eC2EiYqx0 gpjw== X-Received: by 10.180.206.180 with SMTP id lp20mr9035915wic.48.1380921687475; Fri, 04 Oct 2013 14:21:27 -0700 (PDT) MIME-Version: 1.0 From: "Jack O'Connor" Date: Fri, 4 Oct 2013 14:20:57 -0700 Message-ID: Subject: Emulating vim's Ctrl-W behavior To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=001a11c380b0a50d0204e7f0e21c --001a11c380b0a50d0204e7f0e21c Content-Type: text/plain; charset=ISO-8859-1 Zsh likes to nuke my pipes when I delete backwards. For example, if I have the line... echo a | grep ...and I press Ctrl-W twice, then what I'd like to have (and what vim and bash give me) is... echo a But zsh doesn't seem to count the pipe as a word, and the second Ctrl-W plows through it and deletes the "a". Is there any way to configure zsh to get vim's behavior? And related, is there a way to delete backwards to the next slash in a path, as Ctrl-W does in vim, rather than deleting the whole path? Thanks very much. -- Jack O'Connor --001a11c380b0a50d0204e7f0e21c--