You can use editor commands to customize your editing environment, search for or change text in your document, or perform many other functions.
To issue an editor command:
For example, enter:
to add a new line into the document.add 1
To issue an editor command when the editor profile is vi:
vi command. The cursor is now located on the editor command line.:lpex
For example, enter:
to sort the elements included in the current block selection.:lpex sort selection
To recall a previously used command:
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:
is equivalent to: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:query version
is interpreted by the editor as:hex e1
and sets the character at the current cursor location to the character with the specified hexadecimal value.set hex e1
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:
will run the duplicateLine action, copying the current line.action duplicateLine
Default editor commands
Editor parameters
Default editor actions
vi base profile
Copyright IBM Corporation 1992, 2012. All Rights Reserved.