Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
Table of contents Previous: ECHO Next: EG Index

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.


Table of contents Previous: ECHO Next: EG Index
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690