PiDP-8/I SoftwareOS/8 EDIT Cheat Sheet
Not logged in

Starting EDIT from OS/8

ACTION COMMAND
Create a new file CREATE <filename>
Edit an existing file EDIT <filename>

Global EDIT Commands

The top-level EDIT prompt character is #.

ACTION COMMAND
Read a buffer full R
Append to buffer A (Ctrl-L terminates input)
Output line numbers . = current, / = highest
Insert before line <n>I (Ctrl-L terminates input)
Move up a line <
Move down a line >
List buffer L
List current line .L
List last line /L
List line by number <n>L
List range of lines <m>,<n>L
Delete line(s) .D, /D, <n>D, [<m>[,<n>]]D
Change line(s) .C, /C, <n>C, [<m>[,<n>]]C (Ctrl-L terminates input)
Next page N equivalent to and safer than PKR command, where...
Write buffer to output P (a.k.a. "put")
Clear buffer K
Read next buffer full R (as above)
Exit E (Note: Q does not quit without saving)
Terminate Ctrl-C (can resume with OS/8 START command)
Search for <char> in line <n> <n>S
<char>

Search Mode

After searching for something per the final command above:

ACTION COMMAND
Stop editing and return to top level Ctrl-G Ctrl-G
Insert Type characters
Delete back Backspace (Ctrl-H)
Delete forward to end of line <RET>
Split line Ctrl-J Ctrl-L
Find next instance of <char> Ctrl-L
Find next instance of <newchar> Ctrl-G<newchar>

Buffer Searches

ACTION COMMAND
Intrabuffer string search <Esc><string> followed by ' to begin the search from the beginning of the buffer or " to begin searching at the next line; follow with L to list the line
Interbuffer search J, then as for intrabuffer search

Line Numbers

. is the current line.

You can refer to lines relative to the current one with arithmetic: .+1 is the next line, and .-1 is the previous line.

/ is the highest line number in buffer. Subtraction works here, too: /-1 is the next-to-last line, /-2 is the one before that, etc.

License

Copyright © 2018 by Neil Higgins. This document is licensed under the terms of the SIMH license.