2.5 Viewing the Buffer

In this and next section we discuss commands for moving around in the buffer. These command do not change the content of the buffer. The following commands are useful for viewing the content of the current buffer.

SPC
C-f

Scroll text of current window upward almost full screen. You can go forward in the buffer by this command (vip-scroll).

RET
C-b

Scroll text of current window downward almost full screen. You can go backward in the buffer by this command (vip-scroll-back).

C-d

Scroll text of current window upward half screen. You can go down in the buffer by this command (vip-scroll-down).

C-u

Scroll text of current window downward half screen. You can go up in the buffer by this command (vip-scroll-up).

C-y

Scroll text of current window upward by one line (vip-scroll-down-one).

C-e

Scroll text of current window downward by one line (vip-scroll-up-one).

You can repeat these commands by giving a count. Thus, 2 SPC has the same effect as SPC SPC.

The following commands reposition point in the window.

z H
z RET

Put point on the top (home) line in the window. So the current line becomes the top line in the window. Given a count n, point will be placed in the n-th line from top (vip-line-to-top).

z M
z .

Put point on the middle line in the window. Given a count n, point will be placed in the n-th line from the middle line (vip-line-to-middle).

z L
z -

Put point on the bottom line in the window. Given a count n, point will be placed in the n-th line from bottom (vip-line-to-bottom).

C-l

Center point in window and redisplay screen (recenter).