From: Richard Hartmann <richih.mailinglist@gmail.com>
To: zsh-users@zsh.org
Subject: Delete everything to the left until next whitespace?
Date: Thu, 10 Feb 2011 21:25:54 +0100 [thread overview]
Message-ID: <AANLkTinaVUBWyk643PsLsmwvQfyL3fk-yxHYhZqR0GgG@mail.gmail.com> (raw)
Hi all,
I am after something that _should_ be do-able, but somehow, the
solution eludes me.
I want to delete to the next whitespace on the left. If I am directly
to the right of one or more whitespaces, they should all be deleted.
With | being the cursor and ^ew being the keybinding for the function
I am after, examples would look like this:
% foo bar baz \!;\'a!a: |^ew
% foo bar baz \!;\'a!a:|^ew
% foo bar baz |^ew
% foo bar baz|^ew
% foo bar |^ew
% foo bar|
% foo bar |^ew baz
% foo bar|^ew baz
% foo | baz
None of this should be affected by $WORDCHARS, only by whitespace.
Thanks for any and all suggestions,
Richard
PS: Other blank/non-printable characters should probably be deleted by
this, as well.
next reply other threads:[~2011-02-10 20:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-10 20:25 Richard Hartmann [this message]
2011-02-10 20:52 ` Peter Stephenson
2011-02-10 21:43 ` René 'Necoro' Neumann
2011-02-10 22:14 ` Richard Hartmann
2011-02-10 22:26 ` René 'Necoro' Neumann
2011-02-11 19:51 ` Peter Stephenson
2011-02-10 22:14 ` Richard Hartmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTinaVUBWyk643PsLsmwvQfyL3fk-yxHYhZqR0GgG@mail.gmail.com \
--to=richih.mailinglist@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).