Show Menu
Cheatography

SciTECO v2.0.0 Cheat Sheet (DRAFT) by

Overview of the SciTECO language as of v2.0.0.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Introd­uction

Overview of SciTECO as an editor as of v2.0.0. A full language descri­ption can be read in sciteco(7).

Legend

$
String delimiter (escape key)
$$
Terminate command line
n
Some number (implied 1). Usually you can write
-
instead of
-1
.
text
Arbitrary text
q
A named storage area called a Q-regi­ster. Use any single character to name the register. There are also two letter names initiated by
#
and long names in
[...]
braces.
^
X
Ctrl+X, but can also be types with a caret
^
.
LF
Line Feed, ie. Enter/­Return key
For instance:
-C
=
-1C
=
R

Qa
=
Q[A]
,
Q#ab
=
Q[AB]

Ctrl+I =
^I
= Tab key, Ctrl+J =
^J
= LF

Exiting

EX$$
Exit, but only if no buffer is "­dir­ty" (unsaved).
-EX$$
Exit even if buffer is "­dir­ty", ie. discarding all unsaved changes.
:EX$$
Exit, saving all "­dir­ty" buffers.

File Commands

EB
filename
$
Edit buffer or open new file. Files, that did not exist on disk, will not be created until you save them.
EB$
Edit the unnamed buffer.
0EB
Show buffer ring/list. You can specify a filename afterwards to open a file.
n
EB$
Select n-th buffer in ring.
EW$
Write (save) current buffer under its current name. Does not work on the unnamed buffer.
EW
filename
$
Save current buffer under new name (Save As).
EF
Finish (close) current buffer.
-EF
Finish (close) current buffer, discarding all unsaved changes.
FG
path
$
Go to folder path, ie. change working directory.
Tip: You can use the Tab-key for autoco­mpl­eting filenames and paths.

Copy & Paste

X
q
Copy from current position until beginning of next line into Q-Register q.
n
X
q
Copy next n lines into Q-Register q.
n
:X
q
Append next n lines into Q-Register q.
n
X
q n
K
Cut next n lines into Q-Register q.
HX
q
Copy entire buffer in to Q-Register q.
G
q
Get (paste) Q-Register q at current position.
I
...
^EQ
q...
Paste Q-Register q while inserting text.
E%
qFILE
$
Save Q-Register q into FILE.
EQ
q
$
Edit Q-Register q as a text buffer.
EQ
qFILE
$
Read FILE into Q-Register q.
 

Text Insertion

I
text
$
Insert text into buffer.
^I
text
$
Insert text with leading tab/in­den­tation. Can be typed with the Tab-key!

Cursor Movement

C
Move one character forward.
n
C
Move n characters forward.
R
Move one character backwards (reverse).
n
R
Move n characters backwards.
W
Move to the beginning of next word.
L
Move to the beginning of next line.
n
L
Move forward n lines.
0L
Go to the beginning of the current line.
n
B
Move backwards n lines.
J
n
L
Go to line n+1.
J
Jump to beginning of buffer.
n
J
Jump to character n.
ZJ
Jump to end of buffer.
Tip: Enable the
fnkeys.tes
module in
~/.tec­o-ini
to move around with cursor keys!

Text Deletion

D
Delete next character.
n
D
Delete next n charac­ters.
V
Delete next word.
n
V
Delete next n words.
n
Y
Delete previous n words.
FK
LF
$
Delete remainder of line.
K
Kill (delete) from current position to beginning of next line.
0K
Kill (delete) to the beginning of line.
0KK
Delete entire line.
n
K
Kill (delete) next n lines.
HK
Kill (delete) the whole buffer.