dw and db not working quite right; search bug; visual selection options

Leo Alekseyev dnquark at gmail.com
Mon Dec 26 07:46:03 CET 2011


On Sun, Dec 25, 2011 at 8:31 AM, Vegard Øye <vegard_oye at hotmail.com> wrote:
> On 2011-12-22 22:33 +0100, Leo Alekseyev wrote:
>
>> Second, there appears to be a bug with evil-search-forward and C-g.
>> In the help, it says "C-g when search is successful aborts and moves
>> point to starting point."  (This is in fact standard emacs behavior.)
>> This doesn't work for me; point stays at the first match, and to get
>> back to the starting point I need to hit C-o.
>
> Fixed in commit 6302c05.

Thanks! It works well when you are cancelling the search at the first match.

I still wish there were a way to quickly jump back to where the search
originally began after you have explored some matches.  Typical use
case (emacs): you isearch for a string, go through a few matches by
pressing C-s repeatedly, and then change your mind.  C-g then takes
you to where the search began.  With the evil-search-forward, when you
start going through matches by pressing 'n', the starting point gets
forgotten.  C-g is no longer effective, and C-o takes you back through
the list of matches.

Given how evil-search works, it's probably not very trivial to
implement, but would be a nice-to-have feature.

>
>> Finally, is there a setting equivalent to Vim's
>> :set selection=exclusive?
>
> There is (setq evil-visual-char 'exclusive), which changes the
> behavior of characterwise selections. Block selections remain

That's exactly what I was looking for.  Coming from emacs, I think
this should be the default.


Regarding my earlier problems with dw and repetition, I tracked it
down to keychord.el.  I don't know what the problem is, but removing
keychord.el made it go away.  My bad for not testing with emacs -Q to
begin with.

--Leo



More information about the implementations-list mailing list