Next: 9.2 Jump
Up: 9. Moving Around a
Previous: 9. Moving Around a
Subsections
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.
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.
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.
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.
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'.
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.
Moving to the end of the word is accomplished with the [Esc][]] sequence.
[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.
Pressing [Ctrl-K] is so similar to the previous command, we don't
need to say anything more here.
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.
To move to the end of the current line press [Esc][Right]. If horizontal
scrolling is active, the first visible column my change.
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.
Pressing [Ctrl-Y] moves the cursor the end of the current paragraph (the next EOL).
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''.
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''.
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.
[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.
To move to the start of the file, just press [Esc][Up].
To move to the end of the file, just press [Esc][Down].
Next: 9.2 Jump
Up: 9. Moving Around a
Previous: 9. Moving Around a
2004-05-02