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

Re: TODO entry: ":z#" should list lines with line numbers.

Expand Messages
  • Bram Moolenaar
    ... I also don t know how it s supposed to work. Posix and Unix 98 don t mention the command. Nvi does implement it, and it appears to work like the patch
    Message 1 of 3 , Jul 2, 2001
      Bohdan Vlasyuk wrote:

      > I'm wondering why this hasn't beed done before.
      > [hope I've understood what's required right]

      I also don't know how it's supposed to work. Posix and Unix 98 don't mention
      the command. Nvi does implement it, and it appears to work like the patch
      makes it work. However, Nvi doesn't allow further arguments after the #.

      I'll include it, won't hurt anyone. How about a patch for the documentation?

      --
      hundred-and-one symptoms of being an internet addict:
      70. ISDN lines are added to your house on a hourly basis

      /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
      ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim )))
      \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
    • Bohdan Vlasyuk
      ... Hopefully it won t. ... Problems are -- it won t fit. see various.txt:91 [:h :z] -- line is full. Or add it as another command ?? That d require to rewrite
      Message 2 of 3 , Jul 2, 2001
        On Mon, Jul 02, 2001 at 06:00:11PM +0200, Bram Moolenaar wrote:

        >> I'm wondering why this hasn't beed done before. [hope I've
        >> understood what's required right]
        > Nvi doesn't allow further arguments after the #. I'll include it,
        > won't hurt anyone.
        Hopefully it won't.

        > How about a patch for the
        > documentation?
        Problems are -- it won't fit.
        see various.txt:91 [:h :z] -- line is full. Or add it as another
        command ?? That'd require to rewrite everything after :z, and anyway,
        where would E144 refer ?? :-\..

        Is this ok ??

        $ diff -u various.txt.old various.txt
        --- various.txt.old Mon Jul 2 19:15:31 2001
        +++ various.txt Mon Jul 2 19:24:59 2001
        @@ -87,13 +87,17 @@
        *:#*
        :[range]# [count] synonym for :number.

        - *:z* *E144*
        -:{range}z[+-^.=]{count} Display several lines of text surrounding the li
        ne
        +:{range}z[+-^.=]{count} or *:z*
        +:{range}z#[+-^.=]{count} *:z#* *E144*
        + Display several lines of text surrounding the line
        specified with {range}, or around the current line
        if there is no {range}. If there is a {count}, that's
        how many lines you'll see; otherwise, the current
        window size is used.

        + :z# acts exactly as :z, but it also numbers lines
        + like :number does.
        +
        :z can be used either alone or followed by any of
        several punctuation marks. These have the following
        effect:



        --
      Your message has been successfully submitted and would be delivered to recipients shortly.