Some commands move the cursor or select regions by S-expressions. An S-expression is a parenthesized form in which the parentheses and/or brackets are matched. For example, (a [b c] (d e f)) is an S-expression containing two nested S-expressions.
| Key | Action |
|---|---|
| Ctrl+g | Go to line |
| Up | Move cursor up one line |
| Ctrl+p | " |
| Down | Move cursor down one line |
| Ctrl+n | " |
| Left | Move cursor left one character |
| Ctrl+b | " |
| Right | Move cursor right one character |
| Ctrl+f | " |
| Home | Move cursor to beginning of line |
| Ctrl+a | " |
| End | Move cursor to end of line |
| Ctrl+e | " |
| Ctrl+9 | Move left to start of S-expression |
| Ctrl+0 | Move right to start of S-expression |
| Key | Action |
|---|---|
| Shift+Up | Extend selection one line up |
| Shift+Down | Extend selection one line down |
| Shift+Left | Extend selection one character to the left |
| Shift+Right | Extend selection one character to the right |
| Shift+Home | Extend selection to start of line |
| Shift+End | Extend selection to end of line |
| Shift+( | Select S-expression left |
| Shift+) | Select S-expression right |
| Alt+c | Copy selected text to clipboard |
| Alt+v | Paste text from clipboard |
| Shift+Insert | " |
| Alt+x | Cut selected text and place on clipboard |
| Key | Action |
|---|---|
| Delete | Delete character to right of cursor (or selection) |
| Ctrl+d | " |
| Backspace | Delete character to left of cursor (or selection) |
| Ctrl+h | " |
| Ctrl+k | Delete from cursor to end of line |
| Ctrl+y | Yank text cut via Ctrl+k |
| Ctrl+u | Delete entire line |
Ctrl+k can be repeated to cut multiple lines as a unit. Pressing Ctrl+y inserts the cut lines at the current cursor position.
| Key | Action |
|---|---|
| Ctrl+z | Undo last change |
| Alt+z | Redo last change |
Pressing Ctrl+z repeatedly will undo multiple changes. Pressing Alt+z repeatedly will redo multiple changes.
| Key | Action |
|---|---|
| Tab | Indent current line |
| Alt+n | New edit window |
| Alt+o | Open file in new edit window |
| Alt+q | Close this window |