Documentation
¶
Overview ¶
Package edlin implements the EDLIN line-oriented text editor.
Command summary (all commands are case-insensitive):
[n] display / go to line n [n][,m]L list lines (default: 23 lines from current) [n]I insert lines before line n (end input with a line containing only ".") A append lines after current line (end input with ".") [n][,m]D delete line(s) [n][,m]S term search for term [n][,m]R replace (prompts for strings; or inline with Ctrl-Z separator) W write file without exiting E write file and exit Q quit without saving (confirms if there are unsaved changes) U undo last change H help
Addresses: an integer, . (current line), or $ (last line).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
Editor holds the EDLIN editing state for a single file.
func New ¶
New opens filename for editing. If the file does not exist an empty buffer is prepared (new file).
Click to show internal directories.
Click to hide internal directories.