The emacs or gmacs editing mode

You can use the emacs or gmacs mode for editing.

If the emacs or gmacs mode is active, the following key bindings are supported:

Key Sequence Associated Action
Ctrl+F Move the cursor one character forward.
Ctrl+B Move the cursor one character backward.
Ctrl+A Move the cursor to the beginning of the command line.
Ctrl+E Move the cursor to the end of the command line.
Ctrl+P Display the previous command in the history buffer.
Ctrl+N Display the next command in the history buffer.
Ctrl+D Delete the character at the cursor position.
Ctrl+U Delete the entire command line.
Ctrl+T In emacs mode, transpose the current and previous characters. In gmacs mode, transpose the previous two characters.

In addition the emacs and gmacs modes, allow a repeat count to be used with several of the above key sequences. If the Esc key is pressed followed by one or more numbers, and finally one of the above Ctrl key sequences is pressed, then the numbers following the Esc key are interpreted as a repeat count for the final Ctrl key sequence.