Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Emulating vim's Ctrl-W behavior
- X-seq: zsh-users 18018
- From: "Jack O'Connor" <oconnor663@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Emulating vim's Ctrl-W behavior
- Date: Fri, 4 Oct 2013 14:20:57 -0700
- 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==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author