From: C K Kashyap <ckkashyap@gmail.com>
To: Peter Dyballa <Peter_Dyballa@web.de>
Cc: help-gnu-emacs@gnu.org, Thierry Volpiatto <thierry.volpiatto@gmail.com>
Subject: Re: Emacs equivalent of the ":g" command in vi
Date: Fri, 22 Jul 2011 16:11:46 +0530 [thread overview]
Message-ID: <CAGdT1gre5idFpeFmdHrb+GMQ1XMbzewurtPp8sibXU531ERVGA@mail.gmail.com> (raw)
In-Reply-To: <5AF5A21A-5A3B-4E35-9B7E-4025FD76AF2F@Web.DE>
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
On Fri, Jul 22, 2011 at 3:42 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 22.07.2011 um 12:02 schrieb C K Kashyap:
>
> > I'd like the result to not leave blank lines.
>
> Then modify the regexp to:
>
> ^.*\(your_regexp\).*^J
>
> The final ^J (LINEFEED character) can be input as C-q C-j or as C-o.
>
> --
> Greetings
>
> Pete
>
> Globalisation – communism from above.
>
>
Thanks Pete ... this works for me.
Kashyap
[-- Attachment #2: Type: text/html, Size: 811 bytes --]
next prev parent reply other threads:[~2011-07-22 10:41 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-22 8:42 Emacs equivalent of the ":g" command in vi C K Kashyap
2011-07-22 9:27 ` Peter Dyballa
2011-07-22 9:48 ` Thierry Volpiatto
2011-07-22 10:02 ` C K Kashyap
2011-07-22 10:12 ` Peter Dyballa
2011-07-22 10:41 ` C K Kashyap [this message]
2011-07-22 10:34 ` Thien-Thi Nguyen
2011-07-22 10:44 ` C K Kashyap
2011-07-22 10:45 ` Deniz Dogan
2011-07-22 10:46 ` Deniz Dogan
2011-07-22 19:03 ` Eric Abrahamsen
2011-07-22 20:27 ` MBR
2011-07-22 20:37 ` Andreas Röhler
2011-07-22 20:51 ` MBR
2011-07-23 7:10 ` Andreas Röhler
2011-08-15 0:27 ` Ken Goldman
2011-07-23 3:02 ` C K Kashyap
2011-07-23 8:44 ` suvayu ali
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGdT1gre5idFpeFmdHrb+GMQ1XMbzewurtPp8sibXU531ERVGA@mail.gmail.com \
--to=ckkashyap@gmail.com \
--cc=Peter_Dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=thierry.volpiatto@gmail.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).