From: Mark van Atten <vanattenmark@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] A simple trick for search/replace
Date: Fri, 13 Jan 2017 11:45:15 +0100 [thread overview]
Message-ID: <CALAsyW1ea8tqt+EZkehL-JqZzaU1DCL_jZd-qOtfhEXtH3eOQQ@mail.gmail.com> (raw)
I sometimes do a (repeated) search/replace on a single character, for example
/`/
c/‘/
The above are applied using chording, with an Edit in the relevant
window; the search/replace is split into two separate commands so I
can check the instances.
But depending on the width of the character searched for and the light
conditions, I may find myself spending too much time trying to see
where in the window the highlighted character found by /`/ actually
is.
Appending -+ to the search will highlight the whole line instead; and
prepending x/`/ to the replacement command will then replace the
instance found on that line.
/`/-+
x/`/c/‘/
Mark.
reply other threads:[~2017-01-13 10:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CALAsyW1ea8tqt+EZkehL-JqZzaU1DCL_jZd-qOtfhEXtH3eOQQ@mail.gmail.com \
--to=vanattenmark@gmail.com \
--cc=9fans@9fans.net \
/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.
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).