New EU directive drop.

547 points · 89 comments · view on lemmy.world

89 Comments

ashenone@lemmy.ml · 106 pts · 292d (11 replies)

My boy nano getting a drive by. He always there for me when I need to quickly edit a conf file

unknowing8343@discuss.tchncs.de · 26 pts · 292d (10 replies)

Delete nano already.

Let's make micro the standard!!

AkatsukiLevi@lemmy.world · 23 pts · 292d (4 replies)

Nah, ed

tal@lemmy.today · 23 pts · 292d (3 replies)

ed is, in fact, in the POSIX standard.

https://pubs.opengroup.org/onlinepubs/9799919799/

Shell & Utilities -> Utilities -> ed

In fact, it looks like ex and sed, both child editors of ed, are baked into the standard. No pico-family editors.

swab148@lemmy.dbzer0.com · 21 pts · 292d (1 reply)

wizardbeard@lemmy.dbzer0.com · 10 pts · 292d

Nice, an analognowhere I missed!

AkatsukiLevi@lemmy.world · 1 pts · 291d

Y e s

ashenone@lemmy.ml · 11 pts · 292d (3 replies)

Why should micro be the standard over nano?

unknowing8343@discuss.tchncs.de · 14 pts · 292d (2 replies)

Because nano has unacceptable key combos, and no support for mouse. micro has sensible key combos, good syntax highlighting and supports mouse perfectly fine.

Cevilia@lemmy.blahaj.zone · 11 pts · 291d (1 reply)
[ removed ]
svddendesire@lemmy.dbzer0.com · 1 pts · 291d
[ removed ]
cupcakezealot@piefed.blahaj.zone · 2 pts · 292d

make the standard code-insiders but in vim mode

LorIps@lemmy.world · 30 pts · 292d (12 replies)

Ed is the standard and only option.

dgdft@lemmy.world · 23 pts · 292d (7 replies)

EDITOR=shred too if you’re brave or having a rough day.

anton@lemmy.blahaj.zone · 11 pts · 292d (6 replies)

Remember to put

#!/bin/rm

at the top of every file, to teach people not to execute files they shouldn't.

jim3692@discuss.online · 6 pts · 291d (5 replies)

Please use "/usr/bin/env [command]". Otherwise, it will not work on NixOS

Cevilia@lemmy.blahaj.zone · 2 pts · 291d (4 replies)
[ removed ]
utopiah@lemmy.world · 4 pts · 291d

Not really cool to post commands like that without consideration for privileges for newcomers, make sure to use sudo first. /s

jim3692@discuss.online · 3 pts · 291d (2 replies)

NixOS has rm. But it's not under /bin. There is no /bin in NixOS. The user's programs are inside /run/current-system/sw/bin, and those are symlinks from files hidden in /nix/store.

Running rm -rf / --no-preserve-root under NixOS, will not nuke the entire system, since /nix/store is mounted as read-only, and only remounted as rw when new applications are downloaded, or older unused ones are wiped.

myotheraccount@lemmy.world · 1 pts · 291d (1 reply)

Does that mean it works if you happen to run it while a download is ongoing?

jim3692@discuss.online · 1 pts · 291d

Maybe... I haven't tried it to be honest. I will need to setup a VM for that, as my personal files would get wiped anyway.

If you want to test it yourself, try to rm while nixos-rebuild is running.

tal@lemmy.today · 13 pts · 292d (2 replies)

Ed is kinda-sorta great-granddaddy vim.

https://en.wikipedia.org/wiki/Ed_(software)

ed (pronounced as distinct letters, /ˌiːˈdiː/)[1] is a line editor for Unix and Unix-like operating systems. It was one of the first parts of the Unix operating system that was developed, in August 1969.

Dennis M. Ritchie produced what Doug McIlroy later described as the "definitive" ed,[5] and aspects of ed went on to influence ex, which in turn spawned vi.

https://en.wikipedia.org/wiki/Vi_(text_editor)

Vim ("Vi IMproved") has many additional features compared to vi, including (scriptable) syntax highlighting, mouse support, graphical versions, visual mode, many new editing commands and a large amount of extension in the area of ex commands.

I've never used qed, but it sounds like that might be considered even one step back:

https://en.wikipedia.org/wiki/Ed_(software)

Many features of ed came from the qed text editor developed at Thompson's alma mater University of California, Berkeley.

https://en.wikipedia.org/wiki/QED_(text_editor)

Initial release: 1967

I guess TECO --- which I also have not used --- would kinda-sorta be the emacs analog:

https://en.wikipedia.org/wiki/TECO_(text_editor)

TECO (/ˈtiːkoʊ/[1]), short for Text Editor & Corrector, [2] [3][4] is both a character-oriented text editor and a programming language,[5][6] that was developed in 1962 for use on Digital Equipment Corporation computers, and has since become available on PCs and Unix. Dan Murphy developed TECO while a student at the Massachusetts Institute of Technology (MIT).

It was subsequently modified by many other people[7] and is a direct ancestor of Emacs, which was originally implemented in TECO macros.

EDIT: Actually...hmm. Now that I think of it, I might have briefly used TECO on a DEC VAX/VMS cluster. IIRC, I mostly used EVE, though.

EDIT2: Hmm. Apparently someone has ported TECO to Linux:

https://www.almy.us/teco.html

TECO, that grand old text editor your father used when he was young, is still available! It is powerful and compact precursor to EMACS and has a completely nongraphical user interface. This is based on Pete Siemsen's TECOC implementation, and comes with a copy of the original DECUS TECO documentation.

Do I need a paper tape punch and reader to use TECO?

No. Modern TECOs will also edit text files.

Is TECO fast?

Yes, it's probably the fastest editor available

While I'm maintaining the files as I had worked on them and downloads here, Blake McBride has taken the source code, added the video/scope mode, fixed bugs and improved the speed (not that it is slow!), documented the changes and has it available in GitHub. Go here for his work https://github.com/blakemcbride/TECOC

tries building it

Hah. It takes under a third of a second to compile on my system:

$ git clone https://github.com/blakemcbride/TECOC.git
$ cd TECOC/src
$ time make -j32 -f makefile.linux >/dev/null 2>&1

real    0m0.296s
user    0m2.341s
sys     0m0.874s
$

Hmm. Yeah, I don't remember how to use this at all, if I did use it. Looks like the command syntax is a little like ed's, but you whack Escape twice to execute commands. Each press of Escape displays a dollar sign.

Intro guide © 1972: https://ia902906.us.archive.org/25/items/bitsavers_decpdp10TOandbook04tecoIntro_1457616/04_tecoIntro_text.pdf

$ ./tecoc
*Ihello, world!$$
*EWtest.txt$$
*EX$$
$ cat test.txt; echo
hello, world!
$

Clearly does work, though.

LorIps@lemmy.world · 16 pts · 292d (1 reply)

Vim is bloatware atop Ed making it insanely memory hungry and nearly unusable.

(Send from an IBM PC with 256k memory running LFS)

Samskara@sh.itjust.works · 1 pts · 291d

LFS is unlikely to run on such a machine. BSD or Xenix are appropriate operating systems.

jaennaet@sopuli.xyz · 7 pts · 292d
[ removed ]
sentient_loom@sh.itjust.works · 28 pts · 292d (7 replies)

This "neutrality" is like giving equal voice to doctors and tobacco companies. They need to take the initiative for public health and declare the correct, ergonomic editor as international standard.

QuazarOmega@lemy.lol · 9 pts · 292d (1 reply)

Which is clearly...

The pen

sentient_loom@sh.itjust.works · 3 pts · 291d

The pen

Is that a neovim plugin?

pemptago@lemmy.ml · 7 pts · 292d (1 reply)

Yes, but only if it's the editor I use /s

sentient_loom@sh.itjust.works · 6 pts · 291d

Of course. Why would you use the wrong editor?

Cevilia@lemmy.blahaj.zone · 5 pts · 291d
[ removed ]
callyral@pawb.social · 2 pts · 291d (1 reply)

Obviously Emacs with Evil mode... or Vim with Vimacs?

sentient_loom@sh.itjust.works · 2 pts · 291d

Vim with Vimacs?

Ah yes, the worst of both worlds.

Brewchin@lemmy.world · 25 pts · 292d (6 replies)

Awesome. And now...

  • Step 2: Tabs or spaces.
bluemoon@piefed.social · 11 pts · 292d

a tab is four spaces... press tab all you want...

slazer2au@lemmy.world · 8 pts · 292d (2 replies)

Vertical or horizontal tabs?

kunaltyagi@programming.dev · 5 pts · 291d (1 reply)

Slazer here opening a new front in the tabs v space war

slazer2au@lemmy.world · 2 pts · 291d

New?

hakunawazo@lemmy.world · 2 pts · 291d

More: Tabs or buffers.

callyral@pawb.social · 1 pts · 291d

4 spaces by default for indentation unless .editorconfig says otherwise.

Jaysyn@lemmy.world · 22 pts · 292d (4 replies)

LOL, I prefer nano.

DeltaWingDragon@sh.itjust.works · 7 pts · 292d (1 reply)

You're in luck, it's a designated neutral editor

Tja@programming.dev · 4 pts · 291d

Hello, EU police?

BlameTheAntifa@lemmy.world · 6 pts · 292d

You pervert!

kunaltyagi@programming.dev · 2 pts · 291d

There's always a smaller editor: pico

DaGeek247@fedia.io · 18 pts · 292d

Defaulting to nano without explicit user consent will be considered a class c user experience violation

One step forward, two steps back. I always hate how politicians can be so accommodating of the popular minority while still being so discriminatory against the less popular ones.

muzzle@lemmy.zip · 17 pts · 292d (2 replies)

I use helix, BTW. It's like vim (but backwards) and it's written in rust.

Jumuta@sh.itjust.works · 14 pts · 292d

main selling point being that it's purple

pemptago@lemmy.ml · 4 pts · 292d

It's like neovim if you had amnesia and forgot all the time spent installing plugins and getting your configs just right.

shellington@lemmings.world · 15 pts · 291d (8 replies)

Why does nano always get such hate. Surely as a quick simple text editor it does the job?

protogen420@lemmy.blahaj.zone · 2 pts · 291d

so does vim, and better most of time

SoftestSapphic@lemmy.world · 0 pts · 291d (6 replies)

I liked it a lot until it started asking me for money every time I saved a file.

Now I use the built in text editor.

nope@jlai.lu · 7 pts · 291d (4 replies)

What

SoftestSapphic@lemmy.world · 1 pts · 291d (3 replies)

After the first 50 or so times you save a file in the Nano text editor, it will start giving you a popup asking to buy the full version.

This is extremely annoying every single time you save a file in Nano after it starts activating

nope@jlai.lu · 4 pts · 290d (2 replies)

This sounds like a prank to me, I've been using nano for all of my Linux life (10+y) and I've never seen this, are we talking about the same nano ?
https://nano-editor.org/ ?

SoftestSapphic@lemmy.world · 1 pts · 290d (1 reply)

Fuck i was thinking of Sublime

I don't think I've used nano, looks like Vim

nope@jlai.lu · 1 pts · 290d

Nano actually shows you the shortcuts all of the time

ebolapie@lemmy.world · 2 pts · 291d

What distro do you use?

AnarchistArtificer@slrpnk.net · 14 pts · 292d

Vim has long since won the war. I say that as an emacs user who is familiar with using vim because it's installed by default on the vast majority of computers I interact with nowadays

utopiah@lemmy.world · 13 pts · 291d

I was laughing out loud until I read the part on VS Code or Google Docs to "avoid ideological tensions".

Clearly Herve Beraud is a closed source advocate, total rage bait! /s

Gobbel2000@programming.dev · 13 pts · 292d (1 reply)

All offices within the EU administration will be supplied with the officially modified flavors of eumacs and neuvim.

bluemoon@piefed.social · 1 pts · 292d

oh my gosh yesplease

jenesaisquoi@feddit.org · 13 pts · 291d (2 replies)

Defaulting to nano without consent

This is the real crime

Frenchgeek@lemmy.ml · 3 pts · 291d (1 reply)

Okay. Proceed to set up 'ed' as default

jenesaisquoi@feddit.org · 2 pts · 291d

I'm okay with that

madjo@feddit.nl · 10 pts · 291d (10 replies)

nano for lyfe! what's the fine for a "class c user experience violation"?

ExLisper@lemmy.curiana.net · 9 pts · 291d (9 replies)

Banishment to Windows.

pudgymongrel@lemmy.world · 10 pts · 291d

That's torture and a human rights violation!

madjo@feddit.nl · 3 pts · 291d (7 replies)

eww, ok, I'll switch to vim

luciferofastora@feddit.org · 3 pts · 291d (4 replies)

You can still use nano. Just don't make it the default for your distro or you'll lose your Linux license.

madjo@feddit.nl · 1 pts · 291d (3 replies)

ok, officer. thank you, officer. Am I free to go?

luciferofastora@feddit.org · 4 pts · 291d (2 replies)

If you can figure out how to exit, sure

madjo@feddit.nl · 3 pts · 290d (1 reply)

:wq!

luciferofastora@feddit.org · 3 pts · 290d

Off you go, have a nanice day!

somerandomperson@lemmy.dbzer0.com · 2 pts · 291d (1 reply)

steals your escape key
Now, try to exit vim.

devnull@layer8.space · 1 pts · 291d
1984@lemmy.today · 9 pts · 292d (2 replies)

Isnt that the woman who bent down to Trump to fuck over Europe?

Pringles@sopuli.xyz · 12 pts · 292d (1 reply)

Depends on how you look at it. The deal she made is never going to get ratified by the EU member states, but placated Trump enough to lower his stupid tariffs to acceptable levels. I think she 100% knew the deal she agreed with him was never going in effect and she just wanted to buy time, which so far has worked.

It makes a lot of sense to buy time for a variety of reasons. She took a hit to her image with this "deal" but she effectively accomplished all the goals she had going into those discussions. But from afar it looks like she was played.

1984@lemmy.today · 4 pts · 292d

Yeah maybe that is how it went down. I like your version of events and would like to believe that is what happened actually.

myotheraccount@lemmy.world · 9 pts · 291d

I don't use Arch btw.

exu@feditown.com · 8 pts · 292d

How do they count Neovim?
Also, Emacs absolutely can emulate vim, making it unnecessary

tomiant@piefed.social · 7 pts · 292d

Look, all I'm gonna say is...

EMACS!

https://www.youtube.com/watch?v=urcL86UpqZc

McMonster@programming.dev · 5 pts · 292d

European Commision's laptops run on Windows 11 and then they need to pay for AWS to do any kind of meanigful work... And then some devs still pick Windows to run on AWS anyway!

hcf@infosec.exchange · 4 pts · 291d
[ removed ]
cley_faye@lemmy.world · 4 pts · 291d

Time to burn Europe. This injustice will not stand.

ZkhqrD5o@lemmy.world · 4 pts · 292d

Notepad++

OR3X@lemmy.world · 4 pts · 291d (1 reply)

ED IS THE STANDARD TEXT EDITOR

ShadyGrove@lemmy.world · 5 pts · 291d

You don't need ed, emacs can emulate it.

bluemoon@piefed.social · 3 pts · 292d

to summarize the conclusions thus far, as is my secretary duty

amendments to the protocol of this EU directive are as follows in the first line of stallings amendments:

TECO is to be legacy alternative to EMACS and all personell are to be provided paid leave for educational purposes.

ED is to be legacy alternative to VIM and all personell are to be provided paid leave for educational purposes.

up for further discussion: are ideologically united editors such as VILE (VI Like Emacs) middleground or offensive to both parties? is it right of marginalized editors to invoke a non-monopolyculture clause: "will SAM or VIS be up for consideration?" asks [name redacted under GDPR]

Bluewing@lemmy.world · 3 pts · 291d (1 reply)

No Vim! Vi only! Yes I know if you type "vi filename.txt" you get Vim. That's not the point. Vi is nearly 50 years old. Have some respect.

luciferofastora@feddit.org · 1 pts · 291d

I think the distinction is trivial. Or trivimial?

cupcakezealot@piefed.blahaj.zone · 3 pts · 292d

just run a logon script to alias both vim and emacs and nano for all your users.

1985MustangCobra@lemmy.ca · 3 pts · 291d

I'm glad a peace was found, but go vim!

purplemonkeymad@programming.dev · 2 pts · 291d

No mention of ms edit? I feel this won't last.

BlameTheAntifa@lemmy.world · 2 pts · 292d

I default to vim because I want an editor that just works and doesn’t need a lot of customization. I have nothing against emacs or nano.