edit editors

This commit is contained in:
2026-04-27 15:21:14 +02:00
parent 53eba915b3
commit 3a7a92de14
2 changed files with 17 additions and 18 deletions

View File

@@ -3,8 +3,13 @@ title: Ed: The Standard Editor
tags:
- writing
- guide
- sed
- vim
---
Understanding `ed` will let you understand all that feels strange about the system.
It set the standards for `sed` and `vi`.
`ed` was designed for real terminals, i.e. a typewriter.
You would type a command to the computer, and it would type out any errors.
It would not waste paper, ink, and time by typing out `COMMAND RUN SUCCESSFULLY` after each command.
@@ -12,7 +17,6 @@ A silent machine meant a happy machine.
To fully appreciate `ed`, you can slow down your terminal with the following command:
```sh
ff=/tmp/bashpipe
mkfifo $ff
@@ -24,7 +28,6 @@ Try running `dir` and `dir -F`!
Okay, now onto `ed`...
# Basic Usage
Open a file:
@@ -67,11 +70,8 @@ Delete the current line:
d
```
Write the 'buffer' to disk:
```ed
w
```
@@ -86,7 +86,6 @@ q
Open that file:
```ed
ed file.md
```