

Microsoft's Edit on Windows is a New Command-Line Text Editor (theverge.com) 57
Microsoft unveiled "Edit on Windows," a new command-line text editor, at its Build conference today. The open-source tool allows developers to edit files directly in the command line without switching to another app, similar to vim but designed to be more user-friendly.
Accessible by typing "edit" in a command prompt, the lightweight editor (less than 250KB) includes features like multiple file support via ctrl + P shortcuts, find and replace functionality, and regular expression support. "What motivated us to build Edit was the need for a default CLI text editor in 64-bit versions of Windows," said Christopher Nguyen, product manager of Windows Terminal, noting that 32-bit Windows versions already ship with MS-DOS Edit.
Microsoft also wanted to avoid the notorious "how do I exit vim?" problem by creating a modeless editor, The Verge writes. The tool will be available to Windows Insiders in the coming months.
Accessible by typing "edit" in a command prompt, the lightweight editor (less than 250KB) includes features like multiple file support via ctrl + P shortcuts, find and replace functionality, and regular expression support. "What motivated us to build Edit was the need for a default CLI text editor in 64-bit versions of Windows," said Christopher Nguyen, product manager of Windows Terminal, noting that 32-bit Windows versions already ship with MS-DOS Edit.
Microsoft also wanted to avoid the notorious "how do I exit vim?" problem by creating a modeless editor, The Verge writes. The tool will be available to Windows Insiders in the coming months.
Vim is already available for Windows (Score:3, Insightful)
https://www.vim.org/download.p... [vim.org]
It's been around for a long time, it's well tested, it does a whole lot of stuff and thousands (or millions) of people use it every day.
Why re-invent the wheel?
Not-Invented-Here Syndrome?
Re: (Score:2)
Exactly, or why not port EDIT?
I have tough time thinking anyone on Windows really wants something *new*.
If you are developer you are probably using using something a little more feature complete than anything we'd call an 'editor'
If you are sysadmin you might actually really want something you could use in an SSH terminal to make quick updates and changes on a remote box, but if you're an experienced windows Admin you probably are familiar with Edit, or you have already solved your problem with something el
Re: Vim is already available for Windows (Score:3)
they.already answered that in first link
Why build another CLI editor?
What motivated us to build Edit was the need for a default CLI text editor in 64-bit versions of Windows. 32-bit versions of Windows ship with the MS-DOS Edit or, but 64-bit versions do not have a CLI editor installed inbox. From there, we narrowed down our optionsâ¦
Many of you are probably familiar with the âoeHow do I exit vim?â meme. While it is relatively simple to learn the magic exit incantation, itâ(TM)s cer
Re: (Score:2)
No that offers no explanation as to why they did not do a port of the old 16-bit Edit to 64 bit. Which to me would make a whole lot more sense because much of the audience for a command line editor on Windows is going to be familiar with DOS's Edit.
Re: Vim is already available for Windows (Score:4, Insightful)
Re: Vim is already available for Windows (Score:2)
Because edlin is modal.
Re: Vim is already available for Windows (Score:2)
The problem is the assertion that modal is bad.
It isn't. It's good, and is the basis for the power of vi, and vim.
It's just ignorance, that's all...solved by educating yourself.
I notice it supports regexes, that other source of frustration for the ignorant...
Just learn how to do it. It's really not difficult.
Re: (Score:2)
I'll agree the entire thing would have been rewritten, mostly because it is probably using DOS primitives that don't exist on 64 bit windows for disk access and it probably has calls to read things like the INDOS a thru it to make sure it does not step on something a TSR is doing.
That does not explain why they would not replicated the UI, which I think the certainly should have because as CLI text editors go, its a decent example, and again it is what long time users expect.
Re: (Score:2)
That does not explain why they would not replicated the UI, which I think the certainly should have because as CLI text editors go, its a decent example, and again it is what long time users expect.
You may have answered your own question. Replicating a "decent example" of a UI, thereby providing "what long time users expect", seems horribly out of fashion these days. Providing those things might cost some programmer his or her job!
Re: (Score:1)
Perhaps a nit pick but you're wrong on both counts here.
The edit program wasn't "stripped out of" Quickbasic IDE (or anything else, really).
DOS edit is built into qbasic (not quickbasic) and it's not a stand-alone program.
You can get to it by typing "edit" at the dos command line, or by typing "qbasic /edit" at the dos command line. They both do the same thing.
Re: (Score:2)
they.already answered that in first link
You actually RTFA? What's wrong with you!
Re: (Score:3)
vim.tiny (hah!): 725732b
joe: 463188b
nano: 119332b
I'd rather have joe, but nano is 1/2 of Microsoft's footprint.
Re: (Score:2)
Next up: An emacs clone ... done badly!
Re: (Score:3)
>An emacs clone ... done badly!
Like emacs?
Vi throws up a brick. (Score:1)
https://www.vim.org/download.p... [vim.org]
It's been around for a long time, it's well tested, it does a whole lot of stuff and thousands (or millions) of people use it every day.
Why re-invent the wheel?
Not-Invented-Here Syndrome?
The re-invention justification:
..similar to vim but designed to be more user-friendly..
The reason:
Vim is a free and open-source, screen-based text editor program. It is an improved clone of Bill Joy's vi..
Clearly it wasn’t improved enough. Especially knowing how “user friendly” vi was.
(It’s kind of like a Slashdotter being forced to construct responses with HTML tags and no Unicode support. Nerds thought that was “good enough” too for mainstream.)
Re: (Score:2)
Yes, for the uninitiated, a modless editor is probably a better default. I'm just glad on Fedora and Ubuntu it's easy to change the default editor back to vim, as decent as nano is.
It's kind of funny but after many years of using Vim, when using modeless editors I end up littering the text with gg, dd, yy, :w or a bunch of :q. Fortunately all the good editors have pretty decent VI emulation modes in them these days. Visual Studio Code has quite a decent one, thankfully. I find working with modeless edit
old, new, again (Score:2)
The open-source tool allows developers to edit files directly in the command line without switching to another app, similar to vim but designed to be more user-friendly.
So you mean, like... edit? Of yore? No mention of it being a reintroduction of a concept gone by?
the lightweight editor (less than 250KB) includes features like multiple file support via ctrl + P shortcuts, find and replace functionality, and regular expression support.
That sounds unusually competent, and with usefully welcome features.
"What motivated us to build Edit was the need for a default CLI text editor in 64-bit versions of Windows," said Christopher Nguyen, product manager of Windows Terminal, noting that 32-bit Windows versions already ship with MS-DOS Edit.
Yeah, if you guys had done 16 bit support in NTVDM as is available in an OSS replacement for same, you coulda used MS-DOS edit...
Microsoft also wanted to avoid the notorious "how do I exit vim?" problem by creating a modeless editor, The Verge writes.
You could easily solve it by making the mode clear on the status line, and how to get out of it too, but no need for it to be mode-based anyway.
Shoulda brought back TECO instead (Score:4, Funny)
Make America TECO again
Re: (Score:3)
Naah. Gotta be the mighty ed FTW. [gnu.org]
How exciting (Score:2, Insightful)
As far as I'm concerned they might as well resurrect edlin. I won't be using it.
edlin (Score:2)
What no edlin? DOS line editing from way back.
Re: edlin (Score:2)
Probably written in assembly, and no one left after MS to port it to x64.
Re: (Score:3)
Source code (MIT license) available here [github.com].
Msdos editor remix (Score:1)
We have come full circle, msdos old edit.com with it's basic TUI is now the latest windows feature ...
Written in Rust (Score:3)
This editor is written in Rust, wonder why they don't mention that? Looks decent. I would use it instead of Nano for console work on Debian, therefore I look forward to the Linux fork.
Re: (Score:2)
Looks like the source code plus Linux and Windows binaries for ARM64 and x86-64 are . [github.com]
Re: (Score:2)
This editor is written in Rust, wonder why they don't mention that?
because who fucking cares what it's written in?
Re: (Score:2)
This editor is written in Rust, wonder why they don't mention that?
because who fucking cares what it's written in?
TBH, it got my attention. I didn't check out the github page until I saw this info about Rust, so thanks, Tough Love!
Re: (Score:2)
Pathetic.
Re: (Score:2)
I used Joe because I already knew WordStar. I use nano because everyone told me to, and I learned it on an hour, maybe less.
The comment about users asking 'how do I exit vim???' says it all. Vim is clever, multifaceted, and overkill for casual text editing. I have avoided it and ed because they are not work the trouble, to me, to learn them.
And when you excoriate me for not investing the time to loan such an incredible tool, consider that I just wanted bolt together text, I did not want to learn to weld dis
Re: (Score:2)
If I need user friendliness, I can use joe or nano.
If I need the power of vi, I can simply use sed. sed is non-interactive vi.
sed: 67720b
Re: (Score:2)
This editor is written in Rust, wonder why they don't mention that?
Because not even they give a rat fuck. No one cares.
looks like they resurrected the DOS editor (Score:2)
Re: (Score:2)
Re: (Score:2)
Marketing working overtime. (Score:2)
"What should we call our new editor?"
"How about 'Edit?'"
"Didn't we have an editor called 'Edit' already?"
Everybody glares. "Shut up, old timer. Nobody asked you."
Re: (Score:2)
... Double-press the Windows key once more...
Alternatively, at that point you can single-press the Windows key twice.
Sooo, 30 years late to the game? Good old MS... (Score:2)
Must be some intern's project and they have desperately run out of ideas...
Re: (Score:2)
Have problems with Calc? Use this one:
https://www.moffsoft.com/freec... [moffsoft.com]
I've been using this as a calc replacement for years.
Re: (Score:3)
I just downloaded the new Microsoft edit from Github, and tried it. There just two files (edit.exe and edit.pdb). Copy them into a folder. You can now run. No installer needed.
So, fully portable. Shouldn't need admin rights, and won't need the Microsoft Store.
Re: (Score:2)
Also have this option [winaero.com].
Two Words.... (Score:4, Insightful)
start notepad++
Re: (Score:2)
+1
Re: (Score:2)
I always add the npp="C:\Program Files\Notepad++\notepad++.exe" "$1" macro to windows so I can edit from the command line by just typing npp readme.md
Re: (Score:2)
I just tried that but it didn't work in the command line. Thanks for the tip but you completely failed to meet the customer requirements. Like ... the one thing that this is about.
I really hope you don't ever work in a position where you have customers. I feel sorry for them just thinking about the possibility you may.
More MS baloney (Score:2)
Typical MS bullshit. "similar to vim but designed to be more user-friendly". Which is to say, they have duplicated some of the simplest functionality of vim, and omitted anything which is the least bit difficult to implement. Guaranteed it won't handle regular expressions completely and correctly.
"more user-friendly" means once you have read through 1000 pages of descriptive text you have a chance of being able to use this piece of shit, but even so it won't do what you need it to.
Re: (Score:2)
As a big fan of pico/nano, I have to disagree. Complicated editors like vim or emacs have their place, but there are a lot of things they aren't good for. Drop a new user into vim and they'll be completely lost. They'll have no idea how to do almost anything including, yes, exit the editor. Nothing works like any other editor they've ever used. Drop a new user into nano and they just start typing. It works exactly how they expect it to, and the available commands are shown right at the bottom of the s
So this is a Windows answer to 'nano' editor? (Score:2)
A non-modal text editor? Only took ~40 years eh?
250 kB (Score:2)
Accessible by typing "edit" in a command prompt, the lightweight editor (less than 250KB)
40 years ago, we even had GUI editors running on machines with less RAM than that
Use case? (Score:1)
I was certainly annoyed when first moving to 64-bit Windows that 'edit filename.txt' didn't work. I guess this fixes that. Having said that, a small batch file called 'edit.bat' that calls notepad (or notepad++ or one of about 1000 other options) also works -- or you can just get used to typing 'notepad' at the prompt.
Launching a GUI editor from the command line doesn't work if you text ssh into a Windows box instead of connecting via VNC or RDP or similar. I have done that, but I cannot pretend I do it re
Modal is good (Score:2)
Stop trying to avoid a good feature because of ignorance. Modal is the source of the power of vi et al and isn't that difficult to learn.