[Next] [Up] [Previous] [Contents]
Next: Writingediting other Up: Vi reference Previous: Commands while in

Display commands (See also Move commands)


    ^G                      | Give file name, status, current line number 
                            | and relative position.
    ^L                      | Refresh the screen (sometimes `^P' or `^R').
    ^R                      | Sometimes vi replaces a deleted line by a `@',
                            |   to be deleted by `^R' (see option `redraw').
    [*]^E                   | Expose <*> more lines at bottom, cursor stays 
                            | put (if possible).
    [*]^Y                   | Expose <*> more lines at top, cursor stays put 
                            | (if possible).
    [*]^D                   | Scroll <*> lines downward
                            |   (default the number of the previous scroll;
                            |   initialization: half a page).
    [*]^U                   | Scroll <*> lines upward
                            |   (default the number of the previous scroll;
                            |   initialization: half a page).
    [*]^F                   | <*> pages forward.
    [*]^B                   | <*> pages backward (in older versions `^B' 
                            | only works without count).
    z-                      | Move current line to bottom of the screen.
    z.                      | Move current line to the center of the screen.
    /string/z-              | Move line with string in it to the bottom of 
                            | the screen.
If in the next commands the field <wi> is present, the windowsize will change to <wi>. The window will always be displayed at the bottom of the screen.

                                           
    [*]z[wi]<cr>            | Put line <*> at the top of the window
                            |   (default the current line).
    [*]z[wi]+               | Put line <*> at the top of the window
                            |   (default the first line of the next page).
    [*]z[wi]-               | Put line <*> at the bottom of the window
                            |   (default the current line).
    [*]z[wi]^               | Put line <*> at the bottom of the window
                            |   (default the last line of the previous page).
    [*]z[wi].               | Put line <*> in the center of the window
                            |   (default the current line).

c.c.taylor@ieee.org