|
From: | j. van den hoff |
Subject: | Re: [vile] Another compat question |
Date: | Fri, 04 Mar 2016 09:30:44 +0100 |
User-agent: | Opera Mail/12.12 (MacIntel) |
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.
marked in cmdtbl as NOMOVE, and the command-executor checks that to restore the cursor position after completing a command. I seem to recall that the behavior was discussed quite a while ago (Paul Fox may recall). We've added a few modes (such as alt-tabpos) to smooth out differences between vile and vi...
-- Using Opera's revolutionary email client: http://www.opera.com/mail/
[Prev in Thread] | Current Thread | [Next in Thread] |