McIDAS User's Guide
Version 2015.1

[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]


EDITMODE

Lists and changes the McIDAS command input editor.


Formats

EDITMODE LIST
EDITMODE
editor


Parameters

LIST

list the available editors, with the current setting denoted (default)

editor

editor to use for entering McIDAS commands

 

MCIDAS

standard McIDAS input editor (default)

 

VI

vi input editor

 

EMACS

emacs input editor

 

DEBUG

keyboard input debugging editor; press any key three times to exit to the previous editor


Remarks

You can also enter the EDITMODE command as EMODE.

The EDITMODE vi and emacs editors support a small subset of the commands available in the actual editors. See the list of the supported commands below.

The EDITMODE vi editor supports the following commands.

Command Function
ESC key Switch to the vi command editor from the McIDAS editor.
l Move the cursor forward (right) one character.
w or W Move the cursor forward one word.
h Move the cursor back (left) one character.
b or B Move the cursor back one word.
0 Move the cursor to beginning of the line.
$ Move the cursor to end of the line.
k or - Recall the previous command.
j or + Recall the next command.
a Return to the McIDAS editor and enter text after the current character.
A Append text to the end of the line. Equivalent to $a.
cmotion Delete the current character through the character defined by motion, and return to the McIDAS editor. For example, cw deletes a word starting at the cursor position and returns to the McIDAS editor. If motion is c, the entire line is deleted.
C Delete the current character through the end of line and return to the McIDAS editor. Equivalent to c$.
s Delete the current character and return to McIDAS editor.
S Delete the current line and return to the McIDAS editor. Equivalent to cc.
D Delete the current character through the end of line. Equivalent to d$.
dmotion Delete current character through the character defined by motion. For example, dw deletes a word starting at the cursor position. If motion is d, the entire line is deleted.
i Return to McIDAS editor and insert text before the current character.
I Insert text before the beginning of the line. Equivalent to 0i.
R Return to McIDAS editor and replace characters on the screen with characters you type overlay fashion.
x Delete the current character.
X Delete the preceding character.

EDITMODE emacs editor supports the following emacs-like commands:

Command Function
^F Move the cursor forward (right) one character.
^B Move the cursor back (left) one character.
^A Move the cursor to beginning of the line.
^E Move the cursor to end of the line.
^H Delete the previous character.
^D Delete the current character.
^K Delete the current line starting at the cursor.
^G Delete the current line.
^U Delete the current line. Same as ^G.
^P Recall the previous command.
^N Recall the next command line.

Examples

EDITMODE

This entry lists the available McIDAS command input editors, noting the current setting with [cur].

EDITMODE VI

This entry switches the McIDAS command input editor to the vi editor allowing you to edit the command line using the vi-like commands listed in the Remarks.


[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]