Sortix
Sortix Download Manual Development Source Code News Blog More
current nightly

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.

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

pager(1), editor(5)

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.
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org