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:
- 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.
- Type your editor command on the command line, then press Enter to perform the command. For example, enter:
add 1to add a new line into the document.
Recalling Editor Commands
To recall a previously-used command:
- While in the command line, press Up or Down. Previously used commands will appear in the message window. The editor saves a number of previously used commands across editing sessions.
- 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:
is equivalent to:versionand 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 versionis interpreted by the editor as:hex e1and sets the character at the current cursor location to the character with the specified hexadecimal value.set hex e1
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:
will run the duplicateLine action, copying the current line.action duplicateLine
Default editor commands
Editor parameters
Default editor actions