Cursor movement commands Thecursormovementcommandsarebased uponfilelines (groupsoftextseparated by or characters) rather than display lines, which means that a movement from one line to the next may involve the cursor moving vertically by more than one display line to preserve its relative horizontal offset. Theeditorattemptstokeepthecursoratthesamehorizontalpositionduringvertical moves. This is good for program files because they have short lines, the length ofwhich tends to vary considerably.
If you are editing fileswhich have lines which extend over several display lines (ie., normal text, not programs) you will find that the line up and line down commands, and are not all that you might want. Use the and commands instead. Note that some of the block and marker commands (see below) are also used to alter the cursor position. Enter Return Ctrl E Ctrl X Ctrl Q S Ctrl Q D , Moves the cursor to the same column in the preceding line. , Moves the cursor to the same column in the next line. Moves the cursor to the top of the screen. Moves the cursor to the bottom of the screen. Moves up the file about 2/3 of a screen. Moves down the file about 2/3 of a screen.
Go to the first line in the file. Go to the last line in the file. , Go forward one character. Go backward one character. Go to the start of the next word. Go to the start of the previous word. Go forward 80 characters within the current line. Go backward 80 characters within the current line. Go to the start of the current line. If at the start, go to the end. Go to the start of the next line. The and commands make assumptions about which characters are used to separate words. The separators at which these commands stop are a space, a tab, a newline or one of the following characters:
Ctrl E Ctrl X Ctrl Q E Ctrl Q X Ctrl R Ctrl C Ctrl Q R Ctrl Q C Ctrl D Ctrl S Ctrl F Ctrl A Ctrl Q D Ctrl Q S Ctrl B Ctrl J Ctrl A Ctrl F . ! , : ; ? ( ) [ ] { } A good way to help memorise these commands is to think of the ‘e’ key as the top of a diamond pattern that includes the ‘s’ (left), ‘d’ (right), and ‘x’ (down). The ‘a’ key moves left a word at a time, and the ‘f’ key to the right, a word at a time. You can redraw the display at any time by pressing . This is provided because other programs running simultaneously in background may put output on the display when it is not wanted. Esc Page 48 User Tutorial Manual Edit: The Screen Editor