Editor Commands

These commands can be bound to keys in configuration file:


Cursor Movement

MoveLeft

Moves cursor left one character. Stops at first column.

MoveRight

Move cursor right one character. Does not stop at the end of line.

MoveUp

Moves cursor up one line.

MoveDown

Moves cursor down one line

MovePrev

Moves cursor to previous character. When the start of line is reached, wraps to end of previous line.

MoveNext

Move cursor to next character. Then the end of line is reached, wraps to the beginning of the next line.

MoveWordLeft

Moves cursor one word left. Stops at the start of line.

MoveWordRight

Moves cursor one word right. Stops at the end of line.

MoveWordPrev

Moves cursor to start of previous word. When the start of line is reached, wraps to the end of previous line.

MoveWordNext

Moves cursor to start of next word. When the end of line is reached, wraps to the start of next line.

MoveLineStart

Moves cursor to beginning of line

MoveLineEnd

Moves cursor to end of line.

MovePageUp

Move cursor to previous page.

MovePageDown

Moves cursor to next page.

MovePageLeft

Moves cursor one page to the left.

MovePageRight

Moves cursor one page to the right.

MovePageStart

Moves cursor to the top of the page.

MovePageEnd

Moves cursor to the bottom of the page.

MoveFileStart

Moves cursor to the start of buffer.

MoveFileEnd

Moves cursor to end of buffer.

MoveBlockStart

Moves cursor to the start of block.

MoveBlockEnd

Moves cursor to the end of block.

ScrollLeft

Scroll screen left 8 characters

ScrollRight

Scroll screen right 8 characters

ScrollDown

Scroll screen down 1 line

ScrollUp

Scroll screen up 1 line

MoveFirstNonWhite

Moves cursor to first non whitespace character on line.

MoveLastNonWhite

Moves cursor after last non whitespace character on line.

MovePrevEqualIndent

Moves cursor to first line above the cursor with indentation equal to current line.

MoveNextEqualIndent

Moves cursor to first line below the cursor with indentation equal to current.

MovePrevTab

Moves cursor to previous tab stop.

MoveNextTab

Moves cursor to next tab stop.

MovePrevPos

Moves cursor to previous cursor position.

SavePos

Saves current cursor position.

MoveSavedPos

Moves cursor to saved position.

MoveSavedPosCol

Moves cursor to saved position column without leaving the current line.

MoveSavedPosRow

Moves cursor to saved position line without leaving the current column.

MoveLineTop

Reposition current line to top of window.

MoveLineCenter

Reposition current line to center of window.

MoveLineBottom

Reposition current line to bottom of window.

MoveTabStart

When inside of tab character, move cursor to start of tab.

MoveTabEnd

When inside of tab character, move cursor to end of tab.

MoveFoldTop

Move to the top of current fold.

MoveFoldPrev

Move to the top of previous fold.

MoveFoldNext

Move to the top of next fold.

MoveFunctionPrev

Move to start of previous function.

A function is determined by two lines matching RoutineRegexp.

MoveFunctionNext

Move to start of next function.

A function is determined by two lines matching RoutineRegexp.


Text deleting

Commands for deleting text in buffer.

KillLine

Delete current line. If we are on the last line of file, only the line contents is deleted.

KillChar

Delete character under cursor.

KillCharPrev

Delete character before cursor.

KillWord

Delete next word.

KillWordPrev

Delete previous word.

KillToLineStart

Delete text to line start.

KillToLineEnd

Delete text to line end.

KillBlock

Kill text in block.

KillBlockOrChar

Kill block if marked, otherwise kill char under cursor.

KillBlockOrCharPreV

Kill block if marked, otherwise kill char before cursor.

BackSpace

Delete character before cursor.

Can be configured with the following mode settings:

Delete

Delete character under cursor (configurable).

Can be configured with the following mode settings


Line commands

Text line operations.

LineInsert

Insert empty line before current line.

LineAdd

Add line after current.

LineSplit

Split line at current cursor position.

LineJoin

Join line with next one.

LineNew

Add new line after current one, move to next line and indent (indentation depends on currently active indentation mode).

LineIndent

Reindent current line. The behaviour depends on currenty active indentation mode.

In PLAIN mode, reindent the line to the same level as previous line.

LineTrim

Trim spaces at the end of current line

LineDuplicate

Duplicate current line.

Text insertion

Text insertion commands.

InsertString

Insert string given as argument.

InsertChar

Insert character with ASCII code given as argument. Does not check for possible abbreviations.

InsertSpace

Insert Space character (ASCII 32)

TypeChar

Insert character with ASCII code given as argument. Checks for possible abbreviations and performs the expansion.

SelfInsert

Insert character defined by last key.

InsertTab

Insert Tab character (ASCII 9)

InsertSpacesToTab

Insert Space characters to next tab stop, simulating a tab.

InsPrevLineChar

Insert character above current character.

InsPrevLineToEol

Insert previous line from current column to end of line.

CompleteWord

Complete word with previous occurance of the word in the file.

WrapPara

Word wrap paragraph (paragraphs are separated by blank lines).

Blocks

Block manipulation commands.

BlockBegin

Set block beginning to current position.

BlockEnd

Set block end to current position.

BlockUnmark

Unmark selected block.

BlockCut

Cut selected block to clipboard.

BlockCutAppend

Cut selected block and append it to clipboard.

BlockCopy

Copy selected block to clipboard.

BlockCopyAppend

Append selected block to clipboard.

BlockPaste

Paste clipboard to current position.

BlockPasteStream

Paste clipboard to current position as stream block.

BlockPasteLine

Paste clipboard to current position as line block.

BlockPasteColumn

Paste clipboard to current position as column block.

BlockKill

Delete selected text.

BlockIndent

Indent block by 1 character.

BlockUnindent

Unindent block by 1 character.

BlockMarkStream

Start/stop marking stream block.

BlockMarkLine

Start/stop marking line block.

BlockMarkColumn

Start/stop marking column block.

BlockExtendBegin

Start extending selected block.

BlockExtendEnd

Stop extending selected block.

BlockReIndent

Reindent entire block (C/REXX mode)

BlockRead

Read block from file.

BlockWrite

Write marked block to file.

BlockPrint

Print a block to configured device.

BlockSelectLine

Select current line as block.

BlockSelectWord

Select word under cursor as word.

BlockUnTab

Remove tabs from marked lines.

BlockEnTab

Generate and optimize tabs in marked lines.

BlockMarkFunction

Mark current function as block.

A function is determined by two lines matching RoutineRegexp.

BlockSort

Sorts the marked block in ascending order.

If mode setting MatchCase is set, characters will be compared case sensitively.

When block is marked in Stream or Line mode, the entire lines in marked block will be compared.

When block is marked in Column mode, only characters within marked columns will be compared.

BlockSortReverse

Sorts the marked block in descending order. See BlockSort for more information.

File commands

FileSave

Save current file.

FileSaveAll

Save all loaded files.

FileSaveAs

Save current file under a new name, changing the name of loaded file.

FileWriteTo

Save current file under a new name, without changing name of loaded file.

FileClose

Close current file.

FileCloseAll

Close all files.

FileOpen

Open a file given as argument. If no argument is given for command, prompt user to enter a filename.

FileOpenInMode

Load a file in a specified mode.

FileReload

Reload current file.

FileNext

Select next file in buffer ring.

FilePrev

Select previous file in buffer ring.

FileLast

Select previously active file. Used to switch between two last used files.

Window commands

Window commands.

WinHSplit

Split window horizontally.

WinNext

Activate next window.

WinPrev

Activate previous window.

WinZoom

Make current window the only one (close all others).

WinRefresh

Repaint entire screen.

WinResize

Resize window (takes integer argument, -x = smaller, +x = bigger).

WinClose

Close current window.

Undo/Redo

Undo commands.

Undo

Undo last operation.

Redo

Redo last undone operation.

Character translation

Character translation commands.

CharCaseUp

Convert current character to uppercase

CharCaseDown

Convert current character to lowercase

CharCaseToggle

Toggle case of current characters

CharTrans

Translate current character as specified by two arguments.

Examples:

    CharTrans 'A-Za-z' 'a-zA-Z'
    CharTrans 'A-D' 'DCBA'

LineCaseUp

Convert characters on current line to uppercase

LineCaseDown

Convert characters on current line to lowercase

LineCaseToggle

Toggle case of characters on current line

LineTrans

Translate characters on current line as specified by two arguments.

BlockCaseUp

Convert characters in selected block to uppercase

BlockCaseDown

Convert characters in selected block to lowercase

BlockCaseToggle

Toggle case of characters in selected block

BlockTrans

Translate characters in block as specified by two arguments.

Searching

Search/Replace commands.

Find

Search for text, w/options

FindReplace

Search and replace text w/options.

FindRepeat

Repeat last search/replace operation

FindRepeatReverse

Repeat last search/replace operation in opposite direction

FindRepeatOnce

Repeat last search/replace operation only once.

MatchBracket

Search for matching bracket

HilitMatchBracket

Show matching bracket highlited if visible in window.

IncrementalSearch

Search incrementally for text.

SearchWordPrev

Search for previous occurance of word under cursor.

SearchWordNext

Search for next occurance of word under cursor.

Search

Search for text

SearchB

Search for text backwards

SearchRx

Search for regexp

SearchReplaceRx

Search and replace using regexp

SearchAgain

Search for text again

SearchAgainB

Search for text again backwards

SearchReplace

Search for text and replace

SearchReplaceB

Search and replace backwards

Folding

Folding commands.

FoldCreate

Create fold

FoldCreateByRegexp

Create folds at lines matching regexp.

FoldDestroy

Destroy fold at current line.

FoldDestroyAll

Destroy all folds in file.

FoldOpen

Open fold at current line.

FoldOpenAll

Open all folds in file.

FoldOpenNested

Open current fold and all nested folds

FoldClose

Close current fold

FoldCloseAll

Close all folds in file

FoldToggleOpenClose

Toggle open/close fold.

FoldPromote

Make fold a higher level fold

FoldDemote

Make fold a lower level fold

Compile commands

Running external tools such as compilers.

Compile

Run compile command in background

ViewMessages

View compiler output

CompilePrevError

Jump to previous compiler error

CompileNextError

Jump to next compiler error

ClearMessages

Clear compiler messages.

Bookmarks

PlaceBookmark

Place a named bookmark at current buffer position

GotoBookmark

Goto a named bookmark in current buffer

RemoveBookmark

Remove a named bookmark from current buffer

Settings

Changing editing options.

ToggleAutoIndent

Toggle automatic indentation

ToggleInsert

Toggle insert/overwrite mode

ToggleExpandTabs

Toggle tab expansion on display.

ToggleShowTabs

Toggle tab visibility (as circles).

ToggleUndo

Toggle undo/redo information saving.

ToggleReadOnly

Toggle read only file.

ToggleKeepBackups

Toggle backup files.

ToggleMatchCase

Toggle case sensitivity for searches

ToggleBackSpKillTab

Enable/disable BackSp killing entire tabs.

ToggleDeleteKillTab

Enable/disable Delete killing entire tabs.

ToggleSpaceTabs

Toggle insertion of spaces instead of tabs on Tab key.

ToggleIndentWithTabs

Toggle indentation with tabs.

ToggleBackSpUnindents

Toggle unindentation on previous indent level on BackSp.

ToggleWordWrap

Toggle automatic word wrap.

ToggleTrim

Toggle trimming of spaces at end of line.

ToggleShowMarkers

Toggle EOL/EOF marker visibility.

ToggleSysClipboard

Toggle usage of system clipboard.

SetLeftMargin

Set left margin to current cursor column.

SetRightMargin

Set right margin to current cursor column.

ChangeTabSize

Prompt for tab size.

ChangeCIndent

Prompt for indentation level for CMode smart indentation.

ChangeCBraceOfs

Change brace offset for CMode smart indentation.

ChangeREXXIndent

Prompt for indentation level for REXX smart indentation

ChangeLeftMargin

Prompt for left margin for word wrap.

ChangeRightMargin

Prompt for right margin for word wrap.

Tags

TagLoad

Load tags database (merge with currently loaded tags).

TagClear

Remove all loaded tags from memory.

TagFind

Prompt for tag and locate it.

TagFindWord

Locate tag under cursor.

TagPop

Return to position before TagFind or TagFindWord command.

TagNext

Search for next occurrance of current tag.

TagPrev

Search for previous occurance of current tag.

Other

ExitEditor

Close all files, save desktop and exit the editor.

RunProgram

Run external program in foreground.

ViewBuffers

View buffer list.

ChangeMode

Activate another mode for current file.

ShowEntryScreen

Show saved shell screen if available.

SwitchTo

Switch to buffer with a number.

ChangeKeys

Change current keymap to keymap of another mode.

ChangeFlags

Change current flags to flags of another mode.

ShowMenu

Show and select from menu.

MainMenu

Activate menu bar.

LocalMenu

Activate local popup menu.

ASCIITable

Select and insert character from ASCII table.

DesktopSave

Save current desktop to active desktop file.

DesktopSaveAs

Ask for a new desktop file and save current desktop into it.

ListRoutines

Show the list of functions in the current buffer.

A function is determined by two lines matching RoutineRegexp.

IndentFunction

Indents the current function. Applys the LineIndent command to every line of function.

A function is determined by two lines matching RoutineRegexp.


Search and Replace

Search/Replace Commands

Find

Search for text with options.

FindReplace

Search and replace text w/options.

FindRepeat

Repeat last search/replace operation

FindRepeatReverse

Repeat last search/replace operation in opposite direction

FindRepeatOnce

Repeat last search/replace operation only once.

MatchBracket

Search for matching bracket

IncrementalSearch

Search incrementally for text.

Search

Search for text

SearchB

Search for text backwards

SearchRx

Search for regexp

SearchReplaceRx

Search and replace using regexp

SearchAgain

Search for text again

SearchAgainB

Search for text again backwards

SearchReplace

Search for text and replace

SearchReplaceB

Search and replace backwards

Search and Replace Options

a
Search for all occurances
b
Search in block only
g
Search through entire file/block (globally).
i
Ignore case
r
Reverse search
x
Use regular expression matching
d
Delete found line
j
Join found line
w
Search for entire words (only when 'x' not used).
n
No prompting

Commands affected by DefFindOpt mode setting:

Commands affected by DefFindReplaceOpt mode setting:

Commands affected by MatchCase mode setting: