next up previous
Next: 9.2 Jump Up: 9. Moving Around a Previous: 9. Moving Around a

Subsections

9.1 Cursor Movement

We have attempted to make moving the cursor as intuitive as possible. Fine movements are made with the keypad arrow keys; larger movements are made with a leading ``meta'' character followed by an arrow keys.

9.1.1 Cursor Left [Left Arrow]

Pressing the [Left Arrow] key moves the cursor one position left. If you are in column 0, the cursor will move to the end of the prior line. If Ved is in ``view'' mode, this key has no effect.

9.1.2 Cursor Right [Right Arrow]

Pressing the [Right Arrow] will move the cursor one position to the right. If you are at the end of a line, the cursor will move the start of the next line. If Ved is in ``view'' mode, this key has no effect.

9.1.3 Cursor Up [Up Arrow]

Pressing the [Up Arrow] will move the cursor up one line. After pressing this key the actual ``edit'' position and the visible cursor position will not necessarily be the same ... the cursor may be displayed past the actual end of the line -- in case the cursor will be correctly placed when you move left, right or execute an editing command.

9.1.4 Cursor Down [Down Arrow]

Pressing the [Down Arrow] will move the cursor down one line. See the comments above for Cursor Up since they apply here as well.

The following commands move the cursor by or within a ``word''. Ved defines a word as series of similar characters. For example, the following are all valid `words'': `abc' ` ' `EOL EOL'.

9.1.5 Start of Word [Escape []

To move to the start of the current word, press [Esc][[]. Note, due to the way ncurses manages its input, there may be a brief delay when you do this ... however, if you press another key immediately after, there will be no delay.

9.1.6 End of Word [Escape ]]

Moving to the end of the word is accomplished with the [Esc][]] sequence.

9.1.7 Start of Next Word [Control-L]

[Ctrl-L] will move the cursor to the start of the next word. Unlike the two previous commands, Ved assumes that you want to move to a non-blank word, so for this command the cursor will move to the first non-blank character following the current word.

9.1.8 Start of Prior Word [Control-K]

Pressing [Ctrl-K] is so similar to the previous command, we don't need to say anything more here.

9.1.9 Start of Line [Esc Left Arrow]

To move to the start of the current line (the same as the left side of the screen), press [Esc][Left]. If horizontal scrolling is active, this will also set the visible column to 0.

9.1.10 End of Line [Esc Left Arrow]

To move to the end of the current line press [Esc][Right]. If horizontal scrolling is active, the first visible column my change.

9.1.11 Start of Paragraph [Control-T]

If you are entering text without EOL characters at the end of each screen line, it is sometimes hard to find a paragraph start or end. [Ctrl-T] moves the cursor to the position following the first EOL found before the current position.

9.1.12 End of Paragraph [Control-Y]

Pressing [Ctrl-Y] moves the cursor the end of the current paragraph (the next EOL).

9.1.13 Top of Page [Home]

The [Home] key will move the cursor to the top of the current page. If the cursor is already at the top of the page, this command will be automatically converted to the ``page up''.

9.1.14 Bottom of Page [End]

The [End] key will move the cursor to the bottom of the current page. If the cursor is already at the bottom of the page, this command will be automatically converted to the ``page next''.

9.1.15 Page Down [Page Down]

Pressing [Page Down] will advance the display by a full page. The bottom line of the current page will be displayed at the top of the new page.

9.1.16 Page Back [Page UP]

[Page Up] will display the text a page back. The top line of the current page will be displayed at the bottom of the new page.

9.1.17 Top of File [Esc Up Arrow]

To move to the start of the file, just press [Esc][Up].

9.1.18 End of File [Esc Down Arrow]

To move to the end of the file, just press [Esc][Down].


next up previous
Next: 9.2 Jump Up: 9. Moving Around a Previous: 9. Moving Around a
2004-05-02