Summary of elementary commands: (Pointer moving) J move pointer to start of buffer ZJ " " end of buffer L move pointer to start of next line (L=1L) nL " " down n lines (-nL moves up [-L=-1L]) 0L " " to start of current line C advance pointer 1 character nC " " n characters (-nC moves backwards [-C=-1C]) Stxt$ move pointer following next occurence of "txt" nStxt$ " " " nth occurence of "txt" (Type buffer) T type to end of current line (T=1T) nT type n lines 0T type from beginning of line to pointer HT type entire buffer V type current line (V=0TT) (Delete, Kill) D delete next character nD " " n characters (-nD deletes backwards [-D=-1D]) K kill to end of current line nK kill n lines (-nK kills backwards [-K=-1K]) 0K kill from start of current line to pointer HK kill entire buffer (Insert) Itext$ insert "text" into buffer after current pointer (pointer is positioned after inserted text) (Replace) FSt1$t2$ replace next occurence of "t1" with "t2" nFSt1$t2$ " " nth occurence of "t1" with "t2" (Page manipulation) A appends next page of input file to buffer P outputs the current page and reads in the next page nP executes the P command n times Y kill entire buffer and append next page (same as HKA) (Special characters) $ escape (on Tek terminals press CTRL, SHIFT and K keys simultaneously) used to terminate strings in S, I, and FS commands; 2 escapes execute command. DELETE (RUBOUT on Tek terminals) erases last character typed ^G^G deletes the entire command string ^G types current line of command string ^G* types entire command string ^U deletes current line in command string ? if typed immediatly following an error TECO will type the command string up to the point that caused the error