An elegant piece of software, for a more civilized age.
@generalkenobi76903 жыл бұрын
Hello there
@feschber2 жыл бұрын
@@generalkenobi7690 nice
@AndersJackson Жыл бұрын
You has never worked with just a printer and keyboard, have you? It was not that civilized.
@johnc34034 ай бұрын
Napalm, Suez, Manson, Kennedy, LSD, The Krays, Zodiac killer, segregation and altamont spring to mind. ed is an elegant piece of software though, I grant you that.
@SimGunther3 жыл бұрын
Distrotube is _the_ standard linux KZbin channel
@zasbirrahmanzayan86482 жыл бұрын
@Addison Brendtro i think they do
@tiberiusmagnificuscaeser49293 жыл бұрын
I unironically used ed as my primary text editor for a bit. I liked it. It works well if you’re willing to work with it
@gordonbai53203 жыл бұрын
Wow this video is too good, I can't wait to learn how to use ed so I can be a boomer, which means sage in the world of unix
@SamuTheFrog8 ай бұрын
Underrated comment
@rednight24763 жыл бұрын
The real vi shares it's code base with ed. Out of ed came sed, because people where using redirection to script ed so they made an easier way to do that. Also came as you pointed out grep. Then the Berekeley guys made an extended version of ed called ex, whic adds a lot of convenience functions. Then the visual mode was added to ex. This is vi. You can actually switch vi to ex mode and ex to vi mode. vi will also start in ex mode if your TERM variable is not set. If you redirect your std output to some sort of line printer(e.g. a thrift shop dot matrix) suddenly line editors make a whole lot of sense.
@Jorge-xf9gs10 ай бұрын
Interesting way to use STDs.
@LabiaLicker10 ай бұрын
sounds like bloat if you ask me
@lorensims48462 жыл бұрын
Most of UNIX was actually written in ed. It's a perfectly capable text editor for almost anything you want to do. It just doesn't have all the bells and whistles we've all become used to, but it really does get the job done.
@AndersJackson Жыл бұрын
That was because of back then you didn't have fancy graphical editors, like Emacs, or note even fancy full screen editors like Emacs and vi. You was basically just editing with a keyboard and a printer, no screen.
@DV-ml4fm Жыл бұрын
Ed is OK for writing small text files. I wouldn't use it for writing many lines of code.
@lorensims4846 Жыл бұрын
@@DV-ml4fm “small files”?! Unix as well as most of its first utility programs was written with it. ed is fine for any writing you want to do. You just have to pay a little more attention to what you’re actually doing than in other more fully featured (dare I say “bloated”) text editors.
@vaisakh_km Жыл бұрын
@@lorensims4846 We can write anything with ed... like people used punch cards for calculation... it's just, 1000X harder, but if no other option, i would use it..
@tommylee2k Жыл бұрын
and you get get nearly everywhere you want by just walking. Still I wouldn't recommend walking from LA to New York
@mke76053 жыл бұрын
Using ed is for the real masochist. I would love a video about rcs as well.
@robfielding85662 жыл бұрын
i found a real use for it. I am learning braille. I can't get out of vim from the braille terminal, because it uses an 8-dot keyboard. It's the closest thing to a text editor that works well with braille. (vim kind of works with a qwerty keyboard.). As for characters costing money.... A braille terminal is usually about 40 cells. $30/cell at least. $600 for a 20 char term $1400 for a 40 char term $16000 for an 80 char term (!)
@bahathir_3 жыл бұрын
THanks for the video, andd GNU ed is my current main text editor. :)
@0x007A3 жыл бұрын
ed is a line-oriented text editor while vim is a screen-oriented text editor.
@PauloConstantino1673 жыл бұрын
or you could say Vim is a Lines-oriented editor xD
@supermasterfighter2 жыл бұрын
@@PauloConstantino167 no it’s definitely screen oriented, you can actually edit multiple files at once with vim
@jerryblum75103 жыл бұрын
The history of the program helps me understand it better. Thanks
@0x007A3 жыл бұрын
My introduction to *nix ed was Microsoft DOS 2.x edlin (aka edit line), a line editor. The first time I used *nix ed was autumn 1992.
@scality43093 жыл бұрын
Yeah, they ripped it and let us believe ot was original.
@GarethField3 жыл бұрын
You wouldn’t believe the timing of this in my life, thanks!
@bl_nkspac_96503 жыл бұрын
now i'm interested
@davidr24213 жыл бұрын
Have you just finished building a time machine?
@TangoIndiaMike1443 жыл бұрын
The internet requires you to elaborate on your original comment ;)
@avsbq8 ай бұрын
@@TangoIndiaMike144i agree!
@svenkarlsen27023 жыл бұрын
This video would have been insanely helpful for me back in the early 1990s.... ed was included with the OS install on my Amiga
@PenguinEye3 жыл бұрын
Actually it's pronounced "e d", not ed ;) And between ed and vim there was ex. Great video!
@urugulu16563 жыл бұрын
jep you find out the heritage of vi/vim being something with ex by typing Q (capital q). it will literally tell you that you can enter EX commands now.
@KarlMySuitcase2 жыл бұрын
It's because working in it gives erectile dysfunction.
@DavidLindes2 жыл бұрын
Indeed. I've heard Brian Kernighan say this (that it's pronounced "e d"), and... I'll trust that source for this topic. :) (That said, I always assumed it was pronounced like "Ed", so it took me a moment to even notice this!)
@chrkrngl2 жыл бұрын
it is pronounced "e d", because it predecessor was the QED text editor. Or at least that's where the naming derived from. QED > ed. Or like with BCPL > B > C. I like this Unix naming stuff so much and all the stories behind it. Check out all the Brian Kernighan videos on youtube. PS: And QED is a play on the Latin phrase Q.E.D. "Quod erat demonstrandum", "which was to be demonstrated".
@vukanoa2 жыл бұрын
@@chrkrngl Woooow that is so cool! I've recently started reading through Unix history and naming etc. This is SO cool. Thank you!
@simonjesusbeliever34673 жыл бұрын
I love ed. Thanks for making a video about it.
@jrlepage3 жыл бұрын
Audio sounding really nice and crisp on this video. For me at least. 👍
@MatthewBardsleyMK3 жыл бұрын
ed is great. Rob Pike's acme and sam are great developments on it that use three-click mouse chording; they are a bit more serious and certainly worth a try (apparently Dennis Ritchie was among frequent users of acme)
@PauloConstantino1673 жыл бұрын
are they open source?
@MatthewBardsleyMK3 жыл бұрын
@@PauloConstantino167 Absolutely!
@AndersJackson Жыл бұрын
@@PauloConstantino167 wily(1) is the Open source POSIX (Linux) version of acme(1). Quite nice actually. There are also the shell rc(1) that is an implementation of the shell from the "Plan 9" OS too. (Name from the movie "Plan 9 from Outer Space", a must see. Notice it can't be unseen)
@mortenlund14182 жыл бұрын
This was so informative - learning Vim, this video should be mandatory
@chrissaltmarsh67773 жыл бұрын
Thanks for the memories. Try editing code using a 110 baud ASCII teletype - you find out why ed is terse. Then came ex, and vi, and vim, and neovim - I'm on the latter now but no longer at 110 baud. Anyway, at my age I couldn't remember what's going on any more. An essential when using that kit, but better than patching your paper tape with a stick and some glue.
@auroradraco99743 жыл бұрын
Ed>Emacs+Vim as it is evident by this video 😂
@deliriumcode3 жыл бұрын
I'm aware we are in 2021 but I didn't blink during those 20 minutes! Such interesting content, I've enjoyed.
@FishKungfu3 жыл бұрын
Thank for taking time to make this video, it was great!
@metalpunk3 жыл бұрын
Nice, easy-to-follow demo. Thanks!
@enderger53083 жыл бұрын
To note: Ex (and by extension Vi) are part of POSIX, so any compliant system has them.
@nevoyu3 жыл бұрын
I used to use ed to write COBOL to interface with the CNC machines at work.
@champfisk56133 жыл бұрын
Nice I stumbles across this a couple months ago. It's good for quick notes
@madandu3 жыл бұрын
Thanks, it's well thought, well made. Some of ed cmds are common with vi, in-fact learned new ones to use vi.
@gimcrack5553 жыл бұрын
I always like ne(nice editor). Maybe someday do a video on this great text editor. Linux Voice has rated ne as the third best editor for Linux.
@replikvltyoutube37273 жыл бұрын
DT did you know ed is one of editors that can work with files as bit as gigabytes (or more) in size. Ither editors, including vim would have shat themselves:)
@killertigergaming67622 жыл бұрын
The question is why would you have a file that is a gigabyte long
@Phydoux21123 жыл бұрын
Boy, I could have used this video back in 1995 when I had my first free shell account. :)
@first-thoughtgiver-of-will2456 Жыл бұрын
This with something like c tags and custom bash commands (in my language of choice which is rust) for text search and display and manipulation makes a lot of sense. I can write my own templating and macros and have a "regex first" style of editing, all of which are best practices for programming.
@nickrees47068 ай бұрын
Very clear explanation at a nice speed
@CG-tb5uc Жыл бұрын
In my early ventures with Unix running on, larger than pc's, AT&T computers in the mid-80's, we used to refer to the editor by it's two letters, 'eee dee' instead of 'aid' as in 'said'... Just like the v i editor ... Just a note... 🙂
@AlexEscalante2 жыл бұрын
Well, with all the love "focused" and "distraction free" editors seem to receive these days… I would say ed predates them all!
@AndersJackson Жыл бұрын
Actually, vi is just a full screen fronted in front of ed(1). So it didn't change much when it comes to commands in vi(1). It is the same as in ed(1). In contrary to emacs(1), which used the modern use of the Control key and full screen editing from the beginning. Yes, back then some terminal didn't even had "a", just "A".
@vmisev3 жыл бұрын
Finally! Thanks DT :)
@maithilijsk76983 жыл бұрын
The top shadow of the animation is great
@michalski91412 жыл бұрын
never heard of command line text editors before, it actually makes a lot of sense
@glensmith4913 жыл бұрын
Thanks for the nightmare fuel! First editor I used and probably the real genesis of my hatred for most keyboard binds.
@lorensims48462 жыл бұрын
// will repeat your previous search.
@mayhoth Жыл бұрын
RE-Search in ed is not so cumbersome as you put it: If you read the texinfo manual of ed closely, you find that an empty RE defaults to the last RE processed. So, in order to find subsequent or preceding matches of the last RE, you just type / or ? and hit ENTER. And one other thing: You can set a label with [linenumber]kc, where 'c' is any lower case letter you can think of: This label gets attached permanently to the addressed line and continues to be attached to it even when the line is moved around. Hitting 'c now gets you back to referenced line. So, suppose you put the label m to the first line of a paragraph, the address 'c;/^$/ now references the whole paragraph up and including the next blank line. So, e.g. 'c;/^$/0 or 'c;/^$/$ moves this paragraph to the begin or the end of the buffer, respectively.
@jesusmgw3 жыл бұрын
Now that you did this, I would love if you track down and try the original Vi editor for Unix systems. I don't even know if it is possible.
@gaathastory3 ай бұрын
Talk about a timeless editor, and incidentally, a timeless tutorial- watched it on a wider screen (again) on August 5, 2024... three years after DT recorded the video (17:09)
@laarags2 жыл бұрын
Thanks for sharing.Good stuff👍. If use script cmd before using ed or vi . Yu'll have a typescipt log file. If yu print it in a paper. Yu'll understand why they use ed in the60s.
@toby30843 жыл бұрын
a acme video would be awesome
@H_cked3 жыл бұрын
i have to start taking this distro tube channel very very seriously. i tried to install an update for windows 11 on my unsupported laptop, just like last time i wasn't expecting any errors , i expected it to go smooth, bypassed the tpm thing with appraiseres.dll exploit and then when it was installing, and saying getting things ready, blue screen of death error, i thought this would brick my freaking computer. microsoft really want me to move to linux badly huh? am going to have to learn to work a teminal now and understand linux file extensions, i can't keep doing this anymore, having to download 3gb every week, and this is the thanks i get .people here don't know what it's like being betrayed by a company you expected would take care of you it's not a good feeling. it's like that moment when you are st*bbed in the heart by someone and you begin to feel cold as the life drains from you, just the shock, i thought jail breaking windows 11 was something that could last forever, but i woke up to the harsh reality and need to find alternatives. am really really in shock
@avsbq8 ай бұрын
what are you running now
@timchase77266 ай бұрын
FWIW, the g/ command defaults to using the whole file as the range, so you don't have to specify "1,$g/…/…" or ",g/…/…" allowing you to just do "g/…/…" (unless you only want to do the g/ on a sub-range of the file-lines like "3,10g/…/…") Also, ed remembers your last search, so you can search again with just /⏎ (and that last search also gets (re)used if you do a s// or g// command without specifying the pattern.
@hosseines2763 жыл бұрын
wow! finally ed!!
@AdrianoViana877 ай бұрын
Great explanation 🎉
@lorensims4846 Жыл бұрын
Oh, and it's actually pronounced E D, much as how ex and vi are. You don't need to quit and restart ed to get a "prompt." A capital P command will work the same way as that -p argument at the command line.
@metalfiregametime6523 жыл бұрын
As of this message I'll be putting another hard drive into my computer to install Linux onto it. I'll be doing a dual boot :)
@jamesdecross1035 Жыл бұрын
Interesting, thanks for this.
@andreasklindt71442 жыл бұрын
Maybe you wouldn't write a novel with it, but maybe a first draft. Some tools for writers have some kind of a draft mode or typewriter mode, where you can enter your text but you can't edit it. The idea is to get your thoughts out of your brain before you distract yourself with editing typos, microengineering phrases and beautifying paragraphs. 'ed' could be used for those kind of drafts, since the moment you hit 'enter' (or 'return' as it was called back in 'ed''s glory days) you can't immediatly change that line anymore. Not sure if I would actually use it like this... Does 'ed' has some kind of autosave or buffer that can be recoverd in case of a crash?
@frechjo Жыл бұрын
You could try running Vim in Ex mode, which is pretty similar to Ed, and try configuring it to do all of that. I might be mistaken, but I think it's possible to give Vim specific configuration for the Ex mode. Usually, if you type _ex_ you get a Vim in Ex mode in most Linux distros. If you don't, I think it's just a matter of creating a simlink (Vim reads the name with which it was called from the command line, to know in what mode to start).
@0x007A3 жыл бұрын
In *nix environments, the exclamation point (!) is historically called bang and the sharp symbol (#) is historically called pound, not hash or hashtag.
@spagootest21853 жыл бұрын
Pound causes confusion with £.
@ahscott2001 Жыл бұрын
And now that we've all watched this video, let's say it together: "Vim is for noobs."
@thetriumphsprint Жыл бұрын
According to Brian Kernighan, it's not Ed but rather E. D. 🙂
@benj69643 жыл бұрын
next step is ex ! which introduced vi as its visual mode, if I'm not mistaken
@halfsourlizard9319 Жыл бұрын
It's certainly from another time, but a lot of the fundamental ideas for Vi are there ... just in a clunkier form working within the technical limitations of that time. This makes old videos I've seen of people banging away at a Teletype make waaay more sense.
@CreachterZАй бұрын
Great video. You should have done this with the camera on a printer through the whole thing rather than a monitor.
@zentree99323 жыл бұрын
someone should make a supercut of the .5 seconds dt is just sitting there at the start lol
@ivorjawa8 ай бұрын
I never needed Ed, because when I was sysadminning 25 years ago, everything had vi. But I learned vi because it was everywhere, not because I like it.
@mortezafarshchi8003 Жыл бұрын
Now I noticed the roots of "sed" & "grep". ;,,,,) it was great!!! and so easy! if you already know how to use grep, sed and vi, using ed would be a piece of cake.
@agushex3 жыл бұрын
To be honest I haven't a Unix system without Vi but... hey good to know actually, at work with have some HP-UX and AIX, and minimal AIX for vios and they all have vi... but now I know what to do if there isn't
@beardedchimp7 ай бұрын
Emacs is the standard operating system, it also has a text editor. Bill Joy is the standard God, who also created a text editor.
@urugulu16563 жыл бұрын
but can you do // as in re-search the last thing that has been searched?
@sawilliams6 ай бұрын
ed was the only text editor back in the day if you were coding. There was a dos version also.
@rbtmdl3 жыл бұрын
I've had to use edlin way back when.
@driden19873 жыл бұрын
Ohh I need to learn a new editor !! =]
@michaelsoutherland30232 жыл бұрын
I was researching, Erectile Dysfunction.
@NitroNilz2 жыл бұрын
Also Eating Disorder
@sodiboo2 жыл бұрын
3:50 is that copilot in your terminal or something?
@PauloConstantino1673 жыл бұрын
NOW we're talking!
@Neucher3 жыл бұрын
Is there a distro that doesn't have vi or vim pre installed ?
@willardorwud3 жыл бұрын
I’m not sure possibly Gentoo?
@Neucher3 жыл бұрын
@@willardorwud Gentoo comes with vi at least on the live cd
@DistroTube3 жыл бұрын
Gentoo actually includes vi AND emacs on the live cd. Not even kidding.
@grzegorzklimek60233 жыл бұрын
Ubuntu doesn't have vim preinstalled
@willardorwud3 жыл бұрын
@@grzegorzklimek6023 but I’m 99% sure(because I haven’t actually checked) it has vi
@andylees89393 жыл бұрын
The original vi was a layer on top of ed. The vi : commands invoked the underlying ed engine.
@dagda8253 жыл бұрын
Now Luke is going to start trashing vim in favor of ed because ed sucks less
@sarathirk48713 жыл бұрын
Hi DT, it's really great video, Can you make video on Liquorix and Xanmod Kernel vs Generic Linux Kernel..
@Sinthoras155 Жыл бұрын
I am here because someone made a RISC-V emulator in scratch with a barebones linux on it ed is the only texteditor available
@DevvratSingh0073 жыл бұрын
ed be on that zigma grindset
@scifregizmoguy3 жыл бұрын
19:18 "You cou- you would never write a novel, inside ed, right?" Challenge accepted.
@evildragon17743 жыл бұрын
*softly* Don't
@ShaunakHub3 жыл бұрын
Reminds me of edlin 😁
@tomy74243 жыл бұрын
and here I was watching Ed Edd n Eddy before coming to this
@andresdandrea52593 жыл бұрын
Who said I was making a joke?
@egg54743 жыл бұрын
*No, this is Patrick*
@TangoIndiaMike1443 жыл бұрын
Oh god, I nearly got stuck in "ed".It's "Q" to quit if anyone is wondering.
@6500s13 жыл бұрын
better just open up a new terminal, type xkill and then just kill both terminals :DDD
@0x007A3 жыл бұрын
Where do you think vim's "you can checkout but you can never leave" inspiration originated?
@StrikerEureka853 жыл бұрын
i reboot
@0x007A3 жыл бұрын
@@StrikerEureka85 you must be a Microsoft Windows administrator.
@rodney_d3 жыл бұрын
Just unplug the computer
@jayst3 жыл бұрын
Try the sam editor
@avsbq8 ай бұрын
8:48 distro tube needs to pee
@torsten.breswald3 жыл бұрын
it's pronounced E D , not ed watch interesting video 'Where GREP Came From - Computerphile' where Professor Brian Kernighan explains it alongside
@aqueuse3 жыл бұрын
fascinating, quit slow but very fun !
@scality43093 жыл бұрын
Edlin is just a rippoff on dos.
@world-insumary78843 жыл бұрын
First ed user
@egg54743 жыл бұрын
VAX11/750 user spotted
@philtoa334 Жыл бұрын
👍
@coffeedude3 жыл бұрын
What about EX?
@lorensims48462 жыл бұрын
ex was the new, improved ed and then vi was built on top of ex, which is, I assume, why you chose a colon for a prompt, to remind you of dropping to ex within vi.
@mohammedzeglam68113 жыл бұрын
Hi dt the last month i discover the fg command with vim and i do not understand that unix command very will can be video about it
@harishkalva62373 жыл бұрын
ED is not available in windows wsl
@jackkeifer3 жыл бұрын
From the 60's! Ed's father was a horse... Mr. Ed.
@afborro3 жыл бұрын
I see a trend developing, what ancient relics will DT cover next that no one uses any more. Why not go back to using the old Amdahl from the eighties, at least that would offer some sentimental value to me. Even that had more sophisticated editors than ed. Hey, I even remember punch cards, although I am not that old to say they were in active use any more, but they were still lying around the labs everywhere. I had to go to the computer center to submit my jobs, and end up walking back with a big roll of paper of output, but no ed thankfully.
@hashtagPoundsign Жыл бұрын
ED was pronounced E.D. (eddie) buy the person who developed it and the people that used it when it was new.
@motherboardbroken23053 жыл бұрын
people say nano is for starters, or its easy and meant for beginners. i dont see it, at the get go, i used vim because i followed a video. once i read all the bindings, its so fast and so decisive on its commands (like illustrative i mean, it has ever scenario figured), i found nano's interface and commands so confusing. so much so infact that i just installed vim ( i was distro-hoping, hibernation sucks at pop os) and edited. one thing vim can do is have at least a overlay of commands to get started. btw it was distro-tube who made me see the light, i found vim.
@semikolondev3 жыл бұрын
I’m still scared to make the move but I getting more and more annoyed by other ide. One day I’ll do it I’m sure x)
@ecavero13 жыл бұрын
@@semikolondev I made the move two years ago! I mean, I knew what vim (and linux) was since 2009, at least, but since Oct. 2019, I was on a project and had to use my personal laptop. It only had Ubuntu and 5.6GB of RAM. I only could only tolerate one or maybe a couple of instances of my Java webapp to run, so I had to use a light text editor. This was the opportunity I had to force myself in learning Vim. I haven't looked back ever since. Today, I am kind of forced to use IntelliJ only because of a proprietary plugin, but even there, I use Vim motions!