Splus -e
The editor can do either emacs- or vi-style editing. To determine
the editing style, it uses the first valid value in the following
list of environment variables, where valid means the value
ends with "vi" or with "macs":
$S_CLEDITOR
$VISUAL
$EDITOR
The default, if none is valid, is vi style.
The most useful editing commands are summarized in the following
table:
COMMAND emacs vi backward character Ctrl-B Esc, h forward character Ctrl-F Esc, l previous line Ctrl-P Esc, k next line Ctrl-N Esc, j beginning of line Ctrl-A Esc, ^ (Shift-6) end of line Ctrl-E Esc, $ (Shift-4) forward word Esc, f Esc, w backward word Esc, b Esc, b kill char Ctrl-D Esc, x kill line Ctrl-K Esc, Shift-d delete word Esc, d Esc, dw search backward Ctrl-R Esc, ? yank Ctrl-Y Esc, Shift-y transpose chars Ctrl-T Esc, xp
See the section Command Line Editing in the chapter Getting Started in the S-PLUS User's Manual.