カーソルがある瞬間の行を
z<CR>
またはzt
は、現在の行を画面の最上部に配置します(<CR>
== Enter)
z.
またはzz
は現在の行を画面の中央に配置します
z-
またはzb
は、現在の行を画面の下部に配置します
(z<CR>
、z.
、z-
は、カーソルを最初の空白でない列に置きます。 zt
、zz
、およびzb
は、カーソルを現在の列に残します)
http://vimdoc.sourceforge.net/htmldoc/scroll.html またはでのスクロールに関する詳細情報
vimタイプ:help scroll-cursor
:help scroll-cursor
@mtkの言及の出力。 zz
とz.
の間には違いがあることに注意してください。
次のコマンドは、カーソルを同じ行に置いたまま、編集ウィンドウ(表示されるバッファーの一部)の位置を変更します。
z<CR> Redraw, line [count] at top of window (default
cursor line). Put cursor at first non-blank in the
line.
zt Like "z<CR>", but leave the cursor in the same
column. {not in Vi}
z{height}<CR> Redraw, make window {height} lines tall. This is
useful to make the number of lines small when screen
updating is very slow. Cannot make the height more
than the physical screen height.
z. Redraw, line [count] at center of window (default
cursor line). Put cursor at first non-blank in the
line.
zz Like "z.", but leave the cursor in the same column.
Careful: If caps-lock is on, this command becomes
"ZZ": write buffer and exit! {not in Vi}
z- Redraw, line [count] at bottom of window (default
cursor line). Put cursor at first non-blank in the
line.
zb Like "z-", but leave the cursor in the same column.
{not in Vi}
次の4つのコマンドの場合、カーソルは画面をたどります。カーソルのある文字が画面の外に移動すると、カーソルは画面上の最も近い文字に移動します。 'sidescroll'の値は使用されません。
z<Right> or
zl Move the view on the text [count] characters to the
right, thus scroll the text [count] characters to the
left. This only works when 'wrap' is off. {not in
Vi}
z<Left> or
zh Move the view on the text [count] characters to the
left, thus scroll the text [count] characters to the
right. This only works when 'wrap' is off. {not in
Vi}
zL Move the view on the text half a screenwidth to the
right, thus scroll the text half a screenwidth to the
left. This only works when 'wrap' is off. {not in
Vi}
zH Move the view on the text half a screenwidth to the
left, thus scroll the text half a screenwidth to the
right. This only works when 'wrap' is off. {not in
Vi}
次の2つのコマンドでは、カーソルはテキスト内で移動せず、テキストのみが画面上でスクロールします。
zs Scroll the text horizontally to position the cursor
at the start (left side) of the screen. This only
works when 'wrap' is off. {not in Vi}
ze Scroll the text horizontally to position the cursor
at the end (right side) of the screen. This only
works when 'wrap' is off. {not in Vi}