Cheatography
https://cheatography.com
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.
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-register. Use any single character to name the register. There are also two letter names initiated by #
and long names in [...]
braces. |
|
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
|
Exit, but only if no buffer is "dirty" (unsaved). |
|
Exit even if buffer is "dirty", ie. discarding all unsaved changes. |
|
Exit, saving all "dirty" buffers. |
File Commands
|
Edit buffer or open new file. Files, that did not exist on disk, will not be created until you save them. |
|
Edit the unnamed buffer. |
|
Show buffer ring/list. You can specify a filename afterwards to open a file. |
|
Select n-th buffer in ring. |
|
Write (save) current buffer under its current name. Does not work on the unnamed buffer. |
|
Save current buffer under new name (Save As). |
|
Finish (close) current buffer. |
|
Finish (close) current buffer, discarding all unsaved changes. |
|
Go to folder path, ie. change working directory. |
Tip: You can use the Tab-key for autocompleting filenames and paths.
Copy & Paste
|
Copy from current position until beginning of next line into Q-Register q. |
|
Copy next n lines into Q-Register q. |
|
Append next n lines into Q-Register q. |
|
Cut next n lines into Q-Register q. |
|
Copy entire buffer in to Q-Register q. |
|
Get (paste) Q-Register q at current position. |
|
Paste Q-Register q while inserting text. |
|
Save Q-Register q into FILE. |
|
Edit Q-Register q as a text buffer. |
|
Read FILE into Q-Register q. |
|
|
Text Insertion
|
Insert text into buffer. |
|
Insert text with leading tab/indentation. Can be typed with the Tab-key! |
Cursor Movement
|
Move one character forward. |
|
Move n characters forward. |
|
Move one character backwards (reverse). |
|
Move n characters backwards. |
|
Move to the beginning of next word. |
|
Move to the beginning of next line. |
|
Move forward n lines. |
|
Go to the beginning of the current line. |
|
Move backwards n lines. |
|
Go to line n+1. |
|
Jump to beginning of buffer. |
|
Jump to character n. |
|
Jump to end of buffer. |
Tip: Enable the fnkeys.tes
module in ~/.teco-ini
to move around with cursor keys!
Text Deletion
|
Delete next character. |
|
Delete next n characters. |
|
Delete next word. |
|
Delete next n words. |
|
Delete previous n words. |
|
Delete remainder of line. |
|
Kill (delete) from current position to beginning of next line. |
|
Kill (delete) to the beginning of line. |
|
Delete entire line. |
|
Kill (delete) next n lines. |
|
Kill (delete) the whole buffer. |
|
|
|