sd:ed
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sd:ed [2026/03/23 06:03] – appledog | sd:ed [2026/03/23 15:48] (current) – appledog | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| The '' | The '' | ||
| - | === a | + | === #, = |
| + | * Requires version 0.7.2 and above | ||
| + | |||
| + | 3 | ||
| + | |||
| + | If you enter a number the editor will set the current line. For example, if there are five lines in your document and you type 3, you will move to the third line. | ||
| + | |||
| + | = | ||
| + | |||
| + | The '' | ||
| + | |||
| + | This is the line you will append after if you type '' | ||
| + | |||
| + | === a, i | ||
| * Requires version 0.7.2 and above | * Requires version 0.7.2 and above | ||
| : a | : a | ||
| - | This command appends to the document | + | This command appends to the document, adding a new line after the current |
| : a | : a | ||
| Line 28: | Line 41: | ||
| . | . | ||
| - | This will allow you to type text into the file. | + | This will allow you to type text into the file. If you are appending to an existing line, it will insert the text after the line you are on. For example, if you are on line 3, it will push the old line 4 down and create a new line 4. This will continue every line you type until you enter a '' |
| - | === current line (=) | + | : i |
| - | The '' | + | |
| + | This is the insert | ||
| === l, n, p | === l, n, p | ||
| Line 64: | Line 78: | ||
| === #,#n, #,#bl, #,#p | === #,#n, #,#bl, #,#p | ||
| - | + | * Requires version 0.7.2 and above. | |
| - | * Requires version 0.7.2 and above | + | |
| : 1,3l | : 1,3l | ||
| Line 82: | Line 95: | ||
| $ means the last line, so 1,$p prints the entire document. | $ means the last line, so 1,$p prints the entire document. | ||
| + | |||
| + | == d | ||
| + | * Requires version 0.7.2 and above | ||
| + | |||
| + | This deletes the line you are currently on. There is no undo in this version, so be careful! | ||
| + | |||
| + | == f | ||
| + | * Requires version 0.7.2 and above. | ||
| + | |||
| + | f | ||
| + | |||
| + | This command shows the '' | ||
| + | |||
| + | f file.txt | ||
| + | |||
| + | This command sets '' | ||
| + | |||
| + | == w | ||
| + | * Requires version 0.7.2 and above. | ||
| + | |||
| + | w | ||
| + | |||
| + | This command writes the buffer to '' | ||
| + | |||
| + | Always remember to save your work before quitting. | ||
| + | |||
| + | == e, E | ||
| + | |||
| + | e | ||
| + | |||
| + | '' | ||
| + | |||
| + | e myfile.txt | ||
| + | |||
| + | This clears the entire buffer, loads the file into the buffer, sets the '' | ||
| + | |||
| + | If the buffer is dirty, e warns with ? (like q). E forces it without warning. | ||
| + | |||
sd/ed.1774245781.txt.gz · Last modified: by appledog
