top 80 comments

sorted by: hot top controversial new old
[–] 102 points 1 year ago (10 children)

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

  • source
  • hideshow 10 child comments
  • [–] 25 points 1 year ago (9 children)

    Delete nano already.

    Let's make micro the standard!!

  • source
  • parent
  • hideshow 9 child comments
  • [–] 21 points 1 year ago (4 children)
  • [–] 20 points 1 year ago (3 children)

    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.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 29 points 1 year ago (12 children)

    Ed is the standard and only option.

  • source
  • hideshow 12 child comments
  • [–] 22 points 1 year ago* (7 children)

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

  • source
  • parent
  • hideshow 7 child comments
  • [–] 11 points 1 year ago (6 children)

    Remember to put

    #!/bin/rm
    

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

  • source
  • parent
  • hideshow 6 child comments
  • [–] 6 points 1 year ago (5 children)

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

  • source
  • parent
  • hideshow 5 child comments
  • [+] 2 points 1 year ago (4 children)
  • [–] 3 points 1 year ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 14 points 1 year ago* (last edited 1 year ago) (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 24 points 1 year ago (7 children)

    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.

  • source
  • hideshow 7 child comments
  • load more comments (1 reply)
    [–] 24 points 1 year ago (6 children)

    Awesome. And now...

    • Step 2: Tabs or spaces.
  • source
  • hideshow 6 child comments
  • [–] 23 points 1 year ago (4 children)
  • [–] 17 points 1 year ago* (2 children)

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

  • source
  • hideshow 2 child comments
  • [–] 16 points 1 year ago

    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.

  • source
  • 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

  • source
  • [–] 13 points 1 year ago

    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

  • source
  • [–] 12 points 1 year ago (1 child)

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

  • source
  • hideshow 1 child comment
  • [–] 10 points 1 year ago (4 children)

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

  • source
  • hideshow 4 child comments
  • [–] 8 points 1 year ago (3 children)
  • [–] 9 points 1 year ago

    I don't use Arch btw.

  • source
  • [–] 9 points 1 year ago (2 children)

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

  • source
  • hideshow 2 child comments
  • [–] 12 points 1 year ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 15 points 1 year ago (8 children)

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

  • source
  • hideshow 8 child comments
  • [–] 0 points 1 year ago (6 children)

    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.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 7 points 1 year ago (4 children)
  • [–] 1 point 1 year ago (3 children)

    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

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 1 year ago (2 children)

    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/ ?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 1 year ago
    [–] 8 points 1 year ago* (last edited 1 year ago)

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

  • source
  • [–] 4 points 1 year ago (1 child)

    ED IS THE STANDARD TEXT EDITOR

  • source
  • hideshow 1 child comment
  • [–] 4 points 1 year ago*
    [–] 4 points 1 year ago

    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!

  • source
  • [–] 4 points 1 year ago

    Time to burn Europe. This injustice will not stand.

  • source
  • [–] 3 points 1 year ago

    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.

  • source
  • [–] 3 points 1 year ago

    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]

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

  • source
  • [–] 3 points 1 year ago

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

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

  • source
  • [–] 2 points 1 year ago

    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.

  • source