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

13272Doc Problems with z+ and z^

Expand Messages
  • Bill McCarthy
    Jan 30, 2000
      The documentation for z+ and z^ were added to the wrong section. The
      section "Scrolling relative to cursor" is inappropriate since the
      scrolling of z+ and z^ are not relative to the cursor. Secondly, the
      section text states:

      The following commands reposition the edit window (the part of the
      buffer that you see) while keeping the cursor on the same line:

      Neither z+ and z^ keep the cursor on the same line. z+ and z^ belong,
      respectively, under 'Scrolling downwards' and 'Scrolling upwards'.

      Also the z+ doc is wrongly defined to behave the same as z^ without
      [count].

      The following fixes both problems:

      *** vim56\doc\scroll.txt Sun Jan 16 15:43:32 2000
      --- ..\scroll.txt Sun Jan 30 20:51:11 2000
      ***************
      *** 51,56 ****
      --- 51,62 ----
      CTRL-F Scroll window [count] pages Forwards (downwards) in
      the buffer. See also 'startofline' option.

      + *z+*
      + z+ Without [count]: Redraw with the line just below the
      + window at the top of the window. Put the cursor in
      + that line, at the first non-blank in the line.
      + With [count]: just like "z<CR>".
      +

      ==============================================================================
      2. Scrolling upwards *scroll-up*

      ***************
      *** 80,85 ****
      --- 86,101 ----
      CTRL-B Scroll window [count] pages Backwards (upwards) in the
      buffer. See also 'startofline' option.

      + *z^*
      + z^ Without [count]: Redraw with the line just above the
      + window at the bottom of the window. Put the cursor in
      + that line, at the first non-blank in the line.
      + With [count]: First scroll the text to put the [count]
      + line at the bottom of the window, then redraw with the
      + line which is now at the top of the window at the
      + bottom of the window. Put the cursor in that line, at
      + the first non-blank in the line.
      +

      ==============================================================================
      3. Scrolling relative to cursor *scroll-cursor*

      ***************
      *** 95,106 ****
      zt Like "z<CR>", but leave the cursor in the same
      column. {not in Vi}

      - *z+*
      - z+ Without [count]: Redraw with the line just above the
      - window at the bottom of the window. Put the cursor in
      - that line, at the first non-blank in the line.
      - With [count]: just like "z<CR>".
      -
      *zN<CR>*
      z{height}<CR> Redraw, make window {height} lines tall. This is
      useful to make the number of lines small when screen
      --- 111,116 ----
      ***************
      *** 125,140 ****
      *zb*
      zb Like "z-", but leave the cursor in the same column.
      {not in Vi}
      -
      - *z^*
      - z^ Without [count]: Redraw with the line just above the
      - window at the bottom of the window. Put the cursor in
      - that line, at the first non-blank in the line.
      - With [count]: First scroll the text to put the [count]
      - line at the bottom of the window, then redraw with the
      - line which is now at the top of the window at the
      - bottom of the window. Put the cursor in that line, at
      - the first non-blank in the line.


      ==============================================================================
      4. Scrolling horizontally *scroll-horizontal*
      --- 135,140 ----