vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] Another compat question


From: Thomas Dickey
Subject: Re: [vile] Another compat question
Date: Fri, 4 Mar 2016 05:32:47 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Mar 04, 2016 at 09:30:44AM +0100, j. van den hoff wrote:
> On Fri, 04 Mar 2016 01:28:21 +0100, Thomas Dickey <address@hidden> wrote:
> 
> >On Thu, Mar 03, 2016 at 03:09:35PM -0800, Marc Simpson wrote:
> >>I've noticed that a successful line substitution moves the cursor,
> >>leaving it at the final replacement location. Here's a quick
> >>comparison:
> >>
> >>Initial buffer (cursor marked with the caret):
> >>
> >>  foo bar baz
> >>  ^
> >>
> >>after :s/b/c/g in vile:
> >>
> >>  foo car caz
> >>          ^
> >>
> >>after the same operation in nvi, ex-050325, vim:
> >>
> >>  foo car caz
> >>  ^
> >>
> >>Is this behaviour configurable?
> >
> >no - though it would be fairly easy to implement.  A few commands are
> 
> just my 2c:
> maybe that would really be nice to have: while I can see that the
> current behaviour is desirable in some situations the original
> behaviour (keep position) has also is merits, especially when doing
> document wide substitutions/tidy ups via macros.

yes (I added a to-do item).  Just reading the source history I see it's
been this way since 1993 - Paul's check-in comment refers to my 3.57
changes (though I don't see it clearly in CHANGES.R3 -- will resolve
that later...)

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]