Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
| EDITOR(1) | General Commands Manual | EDITOR(1) | 
NAME
editor — text
    editor
SYNOPSIS
editor | 
    [file] | 
DESCRIPTION
editor is a text editor with basic editing
    functionality. It generally behaves like a GUI editor as opposed to common
    terminal editors. The file named by the file argument
    is loaded if specified. It quits when Ctrl-Q is typed.
Text can be selected by holding the Shift key and moving the cursor.
It supports these keyboard shortcuts:
- Ctrl-C
 - Copy.
 - Ctrl-F
 - Search for a regular expression.
 - Ctrl-G
 - Go to line.
 - Ctrl-K
 - Cut.
 - Ctrl-O
 - Open file.
 - Ctrl-Q
 - Quit.
 - Ctrl-S
 - Save file.
 - Ctrl-V
 - Paste.
 
These commands than can be entered after pressing ESC and a colon:
- language [none | c | c++ | diff]
 - Select syntax highlighting.
 - line-numbering [on | off]
 - Line numbering.
 - margin column-index
 - Display right margin at column-index.
 - popen shell-command
 - Open new file containing output of running shell-command.
 - tabsize tab-size
 - Select tab size.
 
A subset of these commands can be stored in the
    editor(5) configuration file
    loaded on editor startup.
FILES
- /etc/editor
 - Global configuration.
 - ~/.editor
 - User configuration.
 
SEE ALSO
BUGS
editor lacks a number of crucial features,
    such as undo and redo, ability to open multiple files at once, and so on.
    The syntax highlighting can occasionally be inconsistent.
| December 13, 2021 | Sortix 1.1.0-dev |