unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: David Combs <dkcombs@panix.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: What do you think of new vimpulse-mode which emulates vim keys? (was: Re: need advice about fixing up my new vimpact-mode, a Vim emulation mode based on viper-mode)
Date: Mon, 09 Apr 2007 11:13:45 +0200	[thread overview]
Message-ID: <461A03C9.8000000@gmail.com> (raw)
In-Reply-To: <evcscu$s7f$1@reader2.panix.com>

David Combs wrote:
> In article <1175810013.819910.69920@w1g2000hsg.googlegroups.com>,
> jasonspiro4+moznews@gmail.com <jasonspiro4@gmail.com> wrote:
>> Hi Stianse,
>>
>> On Mar 28, 9:36 am, stia...@gmail.com wrote:
>>> Great, I just recently discovered viper-mode and vimpulse made it even
>>> better.
>> Thank you!  Makes me happy about the time I have spent cleaning up
>> vimpulse.el for the web.  I am CC'ing your feedback to Alessandro
>> Piras and Brad Beveridge (I did not write vimpulse.)
>>
>>> I have only tried it for a couple of days, so I don't have any
>>> constructive feedback at the moment, except one modification I had to
>>> make in vimpulse.el. In order to make it work I had to delete the line
>>>
>>>     'viper--key-maps
>>>
>>> from the function my-get-emulation-keymap(). Without this I got an
>>> error message telling me that viper--key-maps variable was void,
>>> resulting in not being able to do anything in emacs (not even close
>>> the window).  Does this have any impact on the available features in
>>> vimpulse?
>> I doubt it has any impact.  But the fact that vimper initially caused
>> such a serious problem is a serious bug.  Thank you for reporting it.
>>
>> Where did you get your emacs-snapshot package?  Did you build it
>> yourself?  If you built a .deb or an RPM yourself and you still have
>> it handy, would you mind to send me it?  (There are many free file
>> hosting services; try a Google search for "file hosting".)
>>
>> Regards,
>> Jason
>>
> 
> Quick question: does either of them implement the "g" command (not
> suffix), that works like this:
> 
>     g/foo/<some vi/vim command>, eg:
> 
>      g/foo/r more-foo-stuff.txt/
> 
>    (as described in Kernighan's "software tools" book, it
>     does it in two passes: first go through
>     and "mark" each line that matches /foo/,
> 
>     then the 2nd pass: from top to bottom, at
>      ever marked line, execute the command --
> 
>     the neat thing being that if during an earlier part 
>     of that 2nd pass, lines get added or deleted,
>      when it gets to a foo-line further down,
>     it still works, because the "marks" are
>     attached to the lines they're at, and thus
>     "move" along with their lines.
> 
> Anyway, vi and vim certainly have it, but some
> emulators seem to be missing it.
> 
> At least if they did have the g feature, I sure
> couldn't get it work.


I have never heard of the g command before, but it seems useful. So I 
tested it in Viper with the latest CVS Emacs and at least this worked:

    :g/style/s/type/dummy/

Viper is the newest vi emulator in Emacs. I think the others are rather 
obsolete.

  reply	other threads:[~2007-04-09  9:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.890.1173814854.7795.help-gnu-emacs@gnu.org>
2007-03-28 13:36 ` What do you think of new vimpulse-mode which emulates vim keys? (was: Re: need advice about fixing up my new vimpact-mode, a Vim emulation mode based on viper-mode) stianse
2007-04-05 21:53   ` jasonspiro4+moznews@gmail.com
2007-04-09  8:10     ` David Combs
2007-04-09  9:13       ` Lennart Borgman (gmail) [this message]
2007-03-12 20:19 Jason Spiro

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=461A03C9.8000000@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=dkcombs@panix.com \
    --cc=help-gnu-emacs@gnu.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.
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).