Loading ...
Sorry, an error occurred while loading the content.

Re: :'<,'>g/foo/z={range} behaves funny

Expand Messages
  • Bram Moolenaar
    ... This appears to be as other old vi versions. It s a roundoff thing. I ll adjust Vim to do the same as old vi s. Also for :z.4 . -- Space is big.
    Message 1 of 8 , Feb 4, 2005
    • 0 Attachment
      Tim Chase wrote:

      > > I haven't actually looked at it. The :z command is an old
      > > fashioned thing, it's mostly there for Vi compatiblity. Did
      > > you try those commands with an old Vi version? I think that
      > > in these days of full-screen editing we don't need more
      > > functionality of the :z command.
      >
      > I just tried it on Solaris vi (not loaded with vim :( darn
      > free-shell accounts :)
      >
      > and got a *different*, yet still equally quirky result. I don't
      > know if Solaris vi counts as "an old Vi version". :)
      >
      > with a document of the form
      >
      > 1
      > 2
      > 3
      > :
      > 7
      > foo
      > 8
      > 9
      > :
      > 20
      > 21
      > ~
      > ~
      > ~
      >
      > using Vim's
      >
      > :z=3
      > returns
      > -------------------------------
      > foo
      > -------------------------------
      >
      > while Solaris vi
      >
      > :z=3
      > returns
      > 7
      > -------------------------------
      > foo
      > -------------------------------
      > 8

      This appears to be as other old vi versions. It's a roundoff thing.
      I'll adjust Vim to do the same as old vi's. Also for ":z.4".

      --
      "Space is big. Really big. You just won't believe how vastly hugely mind-
      bogglingly big it is. I mean, you may think it's a long way down the
      road to the chemist, but that's just peanuts to space."
      -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///
    Your message has been successfully submitted and would be delivered to recipients shortly.