

Microsoft's Edit on Windows is a New Command-Line Text Editor (theverge.com) 99
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:5, 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:4, Informative)
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 certainly not a coincidence that this often turns up as a stumbling block for new and old programmers.
Because we wanted to avoid this for a built-in default editor, we decided that we wanted a modeless editor for Windows (versus a modal editor where new users would have to remember different modes of operation and how to switch between them).
This unfortunately limited our choices to a list of editors that either had no first-party support for Windows or were too big to bundle them with every version of the OS. As a result, Edit was born.
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:5, Insightful)
Re: Vim is already available for Windows (Score:3)
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 use vim. I'm not great at it, but I enjoy being able to do regexps with tokens, which is probably one of the primary reasons I use it at all since I got graphics. I used to use vi occasionally even on Amiga just for practice, though, and I had vi for DOS. Most of the time I use kwrite, which has just enough features that I want to use it.
If I were forced to use a glass terminal, it would be vim all the way.
I used edlin only once or twice. It was tolerably powerful as very simple editors go, but the interf
Re: Vim is already available for Windows (Score:4, Informative)
True, but modal is bad for anyone who does not want to learn. And that's a LOT of people.
Modal means that the user has to pay attention to what mode they are in and they have to know what the modes are and what they do. For a user who wants to make a note or change a line in a file and they don't do it often, this may seem like too much effort if they are just "users" who are used to point-and-click and have no interest in "technical stuff".
This is why so many people are considering upgrading to Windows 11 or switching to Mac, because they don't want to have to do the small amount of learning and "techie work" needed to install Linux.
Re: (Score:1)
Modal means that the user has to pay attention to what mode they are in and they have to know what the modes are and what they do. For a user who wants to make a note or change a line in a file and they don't do it often, this may seem like too much effort if they are just "users" who are used to point-and-click and have no interest in "technical stuff".
Yup, that sounds exactly like who I want quickly hand-editing my system config files!
Re: (Score:1)
Re: (Score:2)
Re: (Score:1)
Modal editors make certain things easier, but if you aren't doing those things you shouldn't have to learn an obtuse text editing language just to alter a couple of lines in a text file.
Re: (Score:2)
You really think that trying to port a thirty-year-old code base written for 16-bit x86 processors with no support for modern necessities like character encoding would have been easier?
Re: (Score:3)
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:3)
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)
qbasic is a basic interpreter that has a special "edit text files" mode built in, as described above.
quickbasic is a compiler that creates executable files from quickbasic programs. It also has a substantially larger number of keywords (commands) than qbasic.
Re: well that's a load of shit (Score:2)
DOS EDIT is a standalone program in MS-DOS 7 (Windows 95 and up) and newer versions of Windows NT 32-bit rather than a mode of QBASIC.
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: Vim is already available for Windows (Score:2)
<looks around nervously>
A wise man once said never get between vi vs Emacs
<oh my god, I hope i got the spelling right
Re: (Score:2)
Give 'em time. This is Microsoft, remember - before too long it'll need some registry settings to make it work, it'll have a windows UI and Copilot integration, and will be multiple megabytes to install. Oh, and it'll need updates every second week because... well, because.
Re: (Score:2)
Next up: An emacs clone ... done badly!
Re: (Score:3)
>An emacs clone ... done badly!
Like emacs?
Re:Vim is already available for Windows (Score:5, Funny)
Next up: An emacs clone ... done badly!
They already have an OS - what they need is an editor :)
Re: (Score:2)
To be fair, Emacs is a better OS (with integrated editor!) than Windows ever was.
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:5, Funny)
Make America TECO again
Re: (Score:3)
Naah. Gotta be the mighty ed FTW. [gnu.org]
Re: Shoulda brought back TECO instead (Score:2)
You Unix kids get off my lawn. ed is nothing more than a cut down clone of the mighty QED for the CTSS.
Re: (Score:2)
Now we need a fourth Yorkshireman...
Re: Shoulda brought back TECO instead (Score:2)
YES. I sometimes wonder, if Windows NT is a clone of VMS, why didn't they bring TECO?
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].
Re: edlin (Score:2)
Except Copilot?
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:4, Interesting)
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:3)
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:1)
This editor is written in Rust, wonder why they don't mention that?
Because not even they give a rat fuck. No one cares.
Re: (Score:2)
wonder why they don't mention that?
I consider it a bonus when people don't constantly brag about it.
Re: (Score:2)
My background is Windows, where I use a lot of modeless text editors over the years. Then I "inherited" a mixed environment (Linux, Windows and BSD) where everything not Windows does not have any GUI. While not having issues working with the terminal at all, tried several times to work with vi. Even with cheat sheets. But I do not seem to get/grasp/grok vi. Not all too fond of nano either, but that is workable. Until I discovered the editor 'micro'.
This is a pretty potent text editor, but with all the commo
looks like they resurrected the DOS editor (Score:2)
Re: (Score:2)
Re: (Score:2)
Marketing working overtime. (Score:4, Funny)
"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.
Re: vim the modern friend (Score:2)
Just pull the power cord to save yourself the trouble.
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)
Maybe it will improve interaction with nano editions of Windows Server? Or however else those GUI-stripped editions of Windows Server are called.
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].
Re: (Score:2)
Does it not have the bandwidth to synergize with the game-changing vision? Is it facing challenges achieving best-in-class democratization? Does it require knowledge of numbers and basic arithmetic operations to use?
Re: (Score:1)
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
Re: (Score:1)
Did you even look at it?
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
Re: 250 kB (Score:2)
Yeah, Notepad and Write on Windows 1.
Re:250 kB (Score:5, Interesting)
Indeed ... back in 1982 I wrote the editor for Acorn Computer's ISO-Pascal system, in 4KB, including regex find/replace. Written in 6502 assembler.
In fact, our whole Pascal system, including compiler, virtual machine interpreter, runtime libraries (incl. floating point, heap, I/O, etc), plus the editor, only took 32KB (2 x 16KB ROMs, only one mapped into the address space at a time).
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.
Re: (Score:2)
No .. it's completely unecessary. Just make every key combination that results in printable character (a, shift-a, etc) a command that self-inserts that character.
Re: (Score:2)
The problem is that for commands to be really useful, you need a lot of them. For example you can consider ctrl, shift, and the arrow keys to compromise commands for manipulating a selection, but that's not rich enough to be a pleasure to use on a slow connection like remote desktop on a bad network. You want enough commands (or a logic to construct commands) that you can make something happen without waiting for screen feedback at each step of the operation.
For example selecting a paragraph and the followi
Re: (Score:2)
OK, but what's the conflict with modeless? It's really just a design choice, but most editors, e.g. emacs, moved on from vi and used a modeless design because it's more intuitive.
There are plenty of non-printable key modifiers such as ctrl, alt, meta/windows to use if you want to use alpha keys for commands as well as function keys.
Re: (Score:2)
Sure, existing modifiers may have a lot of unused potential, but it is still relatively few keys, into which a lot of commands would need to be shoehorned. I also don't imagine I'd remember the complex operations that would have to be used. The beauty of having a lot of keys available for the commands is that each key press does something simple. Say for example that one of my operations is to select function arguments (or anything within '(...)'). I might map that to ctrl+shift+(, and add +win or something
Re: (Score:1)
Plus for PowerShell (Score:1)
Re: (Score:1)
New edit.exe (Score:1)
Are we back in 1995?
VI.EXE from the NT4 ResKit (Score:2)
Less than 250k?! (Score:2)
You may win this time, MS EDIT. /usr/bin/nano /usr/bin/nano
ls -lah
-rwxr-xr-x 1 root root 256.4K Mar 6 2024
(Just use Far Manager and its editor, available on Linux, even OpenWrt)
EMACS it's also available for windows (Score:2)
Terminology (Score:1)
Revolutionary features (Score:1)
> find and replace functionality
Never heard of this feature. This will be revolutionary!
Microsoft Editor (1989) (Score:2)
There was also an older program of the same name [edm2.com]. You could kick off 'make' with it, and it was setup fairly well for coding at the time. But fell short of even the most primitive IDE from Borland or PowerBASIC.
And probably more famous was the EDIT.COM in later versions of MS-DOS. This had a decent implementation of CUA [wikipedia.org] (Common User Access) key boards short cuts. Some of these are pretty common in modern Windows programs, like shift-insert to paste.