[ SDF Public Access UNIX System .. Est. 1987 ]

join welcome faq status members projects store tour gopher abuse dialup dsl minecraft social
tilde nihongo europa webmail gallery usermap teach irc tutorials software telnet ssh

Survival TECO

Below is a subset of commands for minimal useful editing with TECO, the venerable command-based, character-oriented text editor.

File I/O and Termination
EBfileEsc Open file for Both input and output
ERfileEsc Open file for Read-only (input)
EWfileEsc Open file for Write-only (output)
Y Initialize buffer and read from input file (one page)
P Append buffer to output file, reinitialize buffer, read next Page from input file
EX Write buffer to output file and EXit
^C ^C Abandon buffer changes and exit
Movement
[n]C Move one/n Character(s) forward
-[n]C
[n]R
Move one/n Character(s) backward (Reverse)
[n]L Move to beginning of first/nth following Line
-[n]L Move to beginning of first/nth preceding Line
0L Move to beginning of current line
:L Move to end of current Line
[n]J Jump to first/n+1 character in buffer
ZJ Jump to end of buffer
Display
[n]T Type from current position to end of current/n-1 following line(s)
0T Type from beginning of line to curent position
-[n]T Type one/n preceding line(s) and current line up to position
HT Type whole buffer
Useful Combinations
0TT Type current line (current position unchanged)
0LT Type current line, moving position to beginning of line
Insertion
ItextEsc Insert text at current position
Deletion
[n]D Delete one/n character(s) after position
-[n]D Delete one/n character(s) before position
[n]K Delete from position through end of current/n-1 following line(s)
-[n]K Delete one/n preceding lines to current position
0K Delete from beginning of current line to position
:K Delete from position to end of current line leaving end-of-line
HK Delete whole buffer
Search/Replace
[n]StextEsc Search for next/nth occurrence of text
[n]FStext1Esctext2Esc Replace next/nth occurrence of text1 with text2
Copy/Paste
[n]Xq Copy from position through end of current/n-1 following line(s) to register q (single character A-Z, 0-9)
Gq Insert text in register q into buffer at current position

References


Edited withTECO
$Id: survival-teco.html,v 1.4 2010/06/12 09:44:01 papa Exp $

©1987-2065 SDF Public Access UNIX System, Inc. 501(c)(7)
(this page was generated using ksh, sed and awk)