* [9fans] A simple trick for search/replace
@ 2017-01-13 10:45 Mark van Atten
0 siblings, 0 replies; only message in thread
From: Mark van Atten @ 2017-01-13 10:45 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-13 10:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-13 10:45 [9fans] A simple trick for search/replace Mark van Atten
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).