blob: 25f3ac29ce2b99fb2b385df15c93b6cdeed44eb7 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001NAME
2 ed1
3
4DESCRIPTION
5 Commands that use a line range:
6 If no line is given, then curent line is printed.
7
8 p Print line.
9 d Delete line.
10 l Print line with control characters.
11 r file Read in a file after the line specified.
12 s Substitute patterns. See special documentation.
13 z Print 10 lines.
14 a Start insert mode after specified line. Exit with
15 '.'<return>.
16 i Start insert mode before specified line. Exit with
17 '.'<return>.
18
19 Commands used without line specification:
20
21 q Quit. Won't work if file is changed.
22 Q Quit and discard all changes if not saved.
23 w Write the file out.
24 w file Write the file out with name 'file'.
25 e file Edit a file.
26 !cmd Give a game command. For example "say Wait, I am busy".
27
28 As line numbers '.' is current line, and '$' is last line of
29 file. Thus '1,$p' will always print all of the file.
30
31SEE ALSO
32 ed2(LPC)