Issuing editor commands

You can use editor commands to customize your editing environment, search for or change text in your document, or perform many other functions.

Running editor commands

To issue an editor command:

  1. Press Esc to go to the editor command line.  The command line is located below the editing area.  If the command line is not visible in the current editor view, pressing the Esc key will make it visible;  it will stay visible until focus is returned to the edit area of the window.
  2. Type your editor command on the command line, then press Enter to perform the command. 

    For example, enter:

    add 1
    to add a new line into the document.

To issue an editor command when the editor profile is vi:

  1. Type the
    :lpex
    vi command.  The cursor is now located on the editor command line.
  2. Type the editor command and its parameters, then press Enter to run the command. 

    For example, enter:

    :lpex sort selection
    to sort the elements included in the current block selection.

Recalling editor commands

To recall a previously used command:

  1. While in the command line, press Up or Down.  Previously used commands will appear on the command line.  The editor saves a number of previously issued commands across editing sessions.
  2. Select the command you want to reuse, then press Enter.

Implicit parameter set/query

A parameter that does not conflict with the command names available in the current editor view is interpreted as an implicit query or set command for that parameter.  For example, entering:

version 
is equivalent to:
query version 
and will display on the message line the editor version in use.  When additional parameters are specified, the editor will attempt to run the set command.  For example:
hex e1 
is interpreted by the editor as:
set hex e1 
and sets the character at the current cursor location to the character with the specified hexadecimal value.

Running editor actions

Editor actions are usually associated with keys, mouse events, and menus.  You can also run actions from the command line, using the action command.  This is useful when you are developing your own editor extensions.  For example:

action duplicateLine
will run the duplicateLine action, copying the current line.

Related reference
Default editor commands
Editor parameters
Default editor actions
vi base profile