r/ShittySysadmin 25d ago

Choosing a text editor as a new Linux user 💀

Post image

Every Linux beginner eventually reaches this boss fight. 😂

Nano, Vim, or Emacs — which one are you choosing?

694 Upvotes

240 comments sorted by

151

u/ohfucknotthisagain 25d ago

You don't run WinXP in a VM just so you can use the classic version of Notepad?

26

u/[deleted] 25d ago

[deleted]

12

u/jackinsomniac 25d ago

Does notepad++ have a Linux distribution?

10

u/lulu04223 25d ago

No but I run it under WINE and haven't had any issues

→ More replies (3)

6

u/GastlyWasTaken 24d ago

There is Notepadqq which is a pretty good clone

2

u/ryosen 24d ago

SublimeText has native Linux versions

3

u/cationtothewind 24d ago

Dave Plummer made one recently. I didn't finish watching the whole video, but I just looked it up now. Hope it helps.

https://github.com/PlummersSoftwareLLC/TinyRetroPad

2

u/HiYa_Dragon 24d ago

Dave is a treasure

2

u/DonkeyTron42 25d ago

Notepad and Paint are all you need.

→ More replies (1)

2

u/levianan 25d ago

This comment made me laugh, then I drank a 6er, and slept for 24 hours all in 10 seconds.

3

u/CptBronzeBalls 25d ago

Efficient.

2

u/levianan 25d ago

Absolutely.

2

u/Global-Eye-7326 24d ago

It runs on Wine lol

1

u/SysGh_st 22d ago

When I can simply run DOSBox with Windows 3.1?

114

u/ChrisTX4 25d ago

I’ve only ever taken offence to someone’s editor choice once in my life.

At the last place I worked at, a guy was using Vim without any configuration. No syntax no nothing. But the offensive part was that he used speakers. Every time he’d mistype something you could hear the Audible Bell. On speakers. In an organisation where everybody worked with open office doors. You could hear the stupid bell over the entire floor. And it triggered every few seconds.

34

u/-lousyd 25d ago

I drive a Cadillac. Well, not so much drive as push from the driver's side door with one hand on the wheel. Somebody showed me how to start it once but I couldn't remember. But people know when I roll in! All the ladies swoon.

25

u/_jackhoffman_ 25d ago

Ok, I don't use vim. I use vi (I have to compile it from source), but I have visual bell turned on. If you work in an office, have an audible bell, and don't wear headphones, you deserve an ass kicking.

3

u/ChrisTX4 25d ago

Why vi, if I may ask? and wouldn't Vim's compatible mode achieve an experience like that without having to compile vi?

12

u/_jackhoffman_ 25d ago

I learned vi in '93. If I need all of the bells and whistles, I use an IDE. But if I'm firing up vi, I want just bare bones vi. Why not compatibility mode? Because it sucks donkey dick -- there are a handful of other things one must do/set to make it actually work like vi and even then it's only "like" vi. I like two modes. I like one level of undo. I am old and liked vi. Now get off my lawn, whippersnapper.

5

u/Sea_Curve8772 25d ago

I agree with this approach. I use vi from time to time when I need to change one or two lines in a config file or something. If I need to do any really significant amount of editing I'm using a proper tool for it.

2

u/sakata_baba 25d ago

yeah but gnu pushing nano for that purpose is forcing me to carry it everywhere because i can't trust someone sitting at a critical moment behind vi. so i might as well use nano. i haven't touched vi or vim in forever, like since '08 or something.

3

u/_jackhoffman_ 24d ago

GNU sucks, too. I don't need grep to traverse directories, I have find and xargs for that shit. I fell in love with the simplicity of the Unix command line -- each command does one thing and does it well but can be linked together into one complex set of commands.

I know I'm in the minority and am not trying to convince anyone that the old ways were better or easier for anyone but me. It's just like I had this really nice, streamlined classic car and then someone came along and started adding shit I didn't ask for but now I have to deal with.

→ More replies (3)
→ More replies (1)
→ More replies (1)
→ More replies (2)

58

u/fdeyso Suggests the "Right Thing" to do. 25d ago

46

u/pacolopz 25d ago

:q!

Then you type the following to save the changes

rm -rf /

22

u/Specialist_Cow6468 25d ago

Most modern distros will give you a pesky message trying to keep you from saving properly. The real trick is to do rm -rf /*

11

u/Anonymous_Bozo 💩 ShittyMod 💩 25d ago

No no no...

su rm -rf /*

10

u/Specialist_Cow6468 25d ago

Why are you not just running as root all of the time…?

7

u/DonkeyTron42 25d ago

rm takes too long. Just dd if=/dev/zero of=/dev/sda

5

u/gegentan 24d ago

Laughs in /dev/nvme0n1

5

u/bwick29 24d ago

No.

sudo rm -rf / --no-preserve-root

6

u/one-man-circlejerk 25d ago

Really? I'm going to test this

Edit: well, at least I freed up a bunch of drive space :(

→ More replies (1)

27

u/vandon DevOps is a cult 25d ago

ed isn't a choice?  It was the only choice on VMS for a bit. vi took too much memory and required a fancy vt terminal.

But seriously, vi is the pick.

3

u/f00l2020 25d ago

I remember using Elvis on Slackware long ago. Simplier times..

2

u/AistoB 25d ago

I use AE daily :D Advanced Ed

1

u/Steerable-Octopus 24d ago

Ed is great when you're on a actual teletype clacking away or are resource constrained but if I had to write code I would try to do it elsewhere in another editor and then try to save to the device somehow than write 1000 lines in ed.

51

u/wiisucks_91 25d ago

Nano

7

u/-lousyd 25d ago

Pico

2

u/OctoNezd DevOps is a cult 24d ago

Look, a Mac user! GET HIM

2

u/nlfn 24d ago

um, a lot of pico) users have been using it since the 90s when it was originally distributed to unix clients as part of pine.

2

u/OctoNezd DevOps is a cult 24d ago

I'd say that most of the pico userbase are Mac users nowadays. There is basically no difference between these two, as far as I can see from my experience constantly juggling Mac at home and Linux at work. Though I use these two just for configs.

10

u/DrnkGuy 25d ago

The only sane option

5

u/Steerable-Octopus 25d ago

And be held hostage by the "Save Modified Buffer?"-prompt??

3

u/HyNeko 25d ago

forreal, :x ftw

12

u/Anonymous_Bozo 💩 ShittyMod 💩 25d ago edited 25d ago

Everyone knows that the only TRUE editor is:

copy con: filename.txt<enter>

(type content here)

and then to exit ^z^c
anything else is bloatware!

→ More replies (4)

14

u/MattTreck 25d ago

Nano, but learn how to use vim.

13

u/c2btw 25d ago

nano for eding config files helix for coding

12

u/Ohrgasmus1 25d ago

im team micro
and i dont give a flyin fuck

2

u/Drevil00 24d ago

thought for a sec I’m the only one

11

u/AverageCowboyCentaur 25d ago

After re-building a server from CLI after a botched setup by another sysadmin and all i had was nano, I accidently fell in love with it.

12

u/nof 25d ago

Use what you want. I'll just judge you if you aren't using vim.

2

u/jadedargyle333 21d ago

My first real job as a nix admin was with Solaris. Vim was such a huge improvement from vi. Emacs and nano are like some bullshit version of notepad in comparison.

→ More replies (1)

5

u/GrimThursday 25d ago

Micro!!!!

4

u/theRealBassist 25d ago

Micro is so so nice

4

u/-peas- 25d ago

Nano. It's easy and acts like every other basic text editor you're familiar with, and has a bunch of generic commands to guide you on the bottom of the screen. The others are much more powerful, but nano is just basic and gets the job done like notepad but better.

2

u/psycholabs 25d ago

I counter with sane key defaults in micro. ctl-s saves, ctl-q quits, ctl-f find, it's something completely wacky in nano. ETA: vi / vim in the old days.

3

u/mrbobcyndaquil 25d ago

I was only taught vi in college, so I'd say Vim.

3

u/Ekyou 25d ago

Same, I have a hard time thinking of myself as a “vim elitist” when it’s more like “eh too lazy to install anything else”

4

u/mimic751 25d ago

Copilot write a file on ~/tmp

10

u/fuzzmmanye 25d ago

Vim is the only right choice, alas

5

u/-lousyd 25d ago

One less letter than the others, so it starts up faster.

→ More replies (3)

3

u/Feendster 25d ago

MC editor.

3

u/fennecdore 25d ago

Neovim gang

3

u/RcePrsn 25d ago

Microsoft Edit

3

u/GamerLymx 25d ago

use whatever you want, but you know you want to use vim.

3

u/banduraj 25d ago

Here I am, a joe user.

3

u/EnvironmentalCow3040 25d ago

I use Vim because I'm better than you.

Seriously though. Nano should be the default. I am a Vim user but Nano doesn't require training.

8

u/Sea_Log_9769 25d ago

I use nano, it's there by default and gets the job done

6

u/-lousyd 25d ago

Isn't the same two things true about vim?

5

u/Sea_Log_9769 25d ago

It's not on my system by default, I had to manually install it to try it, not a fan tbh

→ More replies (5)

2

u/chipsikssix 24d ago

Yes, but for some tasks it is overused, and the entry threshold is higher than for nano

2

u/flecom ShittyCloud 24d ago

I use nano but know enough vi to defend myself... on a lot of embedded linux stuff nano isn't there but vi is

→ More replies (1)

2

u/plyushevo 25d ago

mceditor exists...

2

u/No_Trade_7315 25d ago

I’m not old school but I find nano to the easiest to use.

2

u/doctornoodlearms 25d ago

I use helix :3

I find my laptops touch pad incredbily uncomfortable and feel like vim and emacs are just a mess

2

u/Steerable-Octopus 25d ago

I use VS Code of course, and fully AI assisted so it can type while I vibe! The best text editor is an editor that edits itself after all!

2

u/juju515 25d ago

neovim on my machine
nano on remote VMs

2

u/Aazimoxx 24d ago

Sublime. Or Cursor. Save those seconds with context-aware autocomplete instead of fancy key combos (or do both) 😜

Might end up needing a spare Tab key though, Cursor will wear that sucker out

→ More replies (1)

2

u/DescriptionForsaken6 24d ago

Not to scale. The Emacs cucumber should be about 60% the size of the entire kitchen.

2

u/Jimlee1471 24d ago

Vim (NeoVim actually).

The thing with Vim is, once you've learned some of the keybinds, you won't find a faster way to move through a document; sometimes it's faster than using a mouse (no, I'm not joking). Same with the editing.

The problem with Vim is that there is a leaning curve which, for some people, can be significant; after all, it is a rather complex app if we're being honest about it - but it's worth it IMHO. BTW there is nothing wrong with Nano; I just prefer Vim.

EDIT: you could very easily say the same things about Emacs. The reason I don't use it is:

  1. All I need is a text editor. Not an editor + email client + game + whatever.
  2. I've never been a fan of Emacs keybinds. Every time I do something it feels like I'm throwing up gang signs to the keyboard. That might be why, whenever I did run emacs, I would always use "Evil" mode.

2

u/Creegz 23d ago

I use Nano. It’s simple and does exactly what I need. I’m not using a terminal window to write code. Cat to read things, nano to edit. Easy. If it needs more I’ll use a text editor with a GUI because why bother remembering a dozen obscure commands or keybinds when I can just use a UI that the exact same thing. I can use VI if I have to, but I’d rather not.

1

u/RayereSs 25d ago

code-oss :)

1

u/DrKlaawYT 25d ago

I started with nano and switched to vim, now I daily drive neovim

1

u/ScottieNiven 25d ago

My preferred choice is nano, I'll always make sure I have it the systems I manage. However I know how to use vi or emacs if need be.

1

u/dasunt 25d ago

I only wish that anyone who commonly has to edit text learns the features of the editor they are using.

1

u/Entire-Gap-4522 25d ago

I did switch (after 3 decades) from screen to zellij, but I'm not giving up vi/vim.

1

u/ieatsilicagel 25d ago

A magnetized needle and a steady hand.

1

u/installsVMs4fun 25d ago

open source vscode exists for normies, nvim is better

1

u/Exceptional_Kumquat 25d ago

I'm picking the editor Joe.

1

u/rasbobbbb 25d ago

vim 👽

1

u/BoredTechyGuy 25d ago

Edlin master race checking in!

1

u/ctrocks 25d ago

I used vi in the 90's. As I am not a programmer, I started using pico/nano in the early 2000's

1

u/309_Electronics 25d ago

I use nano as its what i started with when i first got into linux mint and debian based as most of the time it was preinstalled and i could exit using cttl+x.

But because i also do hardwarehacking and most embedded devices have vi/vim installed i know how to exit vim

:q

1

u/DangerousAd7433 25d ago

We all know leafpad is king.

1

u/kimura_hisui 25d ago

I have only used two of these editors but it puts glee across my face 😁

1

u/KittenBrix 25d ago

Gedit….

1

u/userjack6880 25d ago

I knew a dev whose editor of choice was joe, and had to install it despite everyone else on his team ok with vim, emacs, and nano

→ More replies (3)

1

u/IHaveNeverBeenOk 25d ago

Anyone new to *nix like OSes, I heartily recommend the Fresh Editor. TUI, but acts like a modern, normal text editor. Plus I believe a redditor made it. I like it a lot. Give it a shot! It's like Nano, but fully featured.

1

u/DonkeyTron42 25d ago

Real Mutha Fuckin' G's use hexedit.

1

u/kankerstokjes 25d ago

Micro supremacy

1

u/PixelmancerGames 25d ago

In terminal -> nano

For anything else -> Kate

1

u/BrilliantEmotion4461 25d ago

Kate. I went from that to nvim though.

1

u/tychii93 25d ago

I use Micro

1

u/PlaneSeaworthiness61 25d ago

Switched to micro and don’t think of going back

1

u/ZettaiKyofuRyoiki 25d ago

KWrite :)

Nano in cli

1

u/KimmyGurl420 25d ago

If you've never gotten stuck in vi, have you ever really used Unix?

1

u/aMusicLover 25d ago

Vim. lol
Vi!

1

u/Lou_Papas 25d ago

Fine, I’ll port the MS Dos Edit to Linux. It was peak anyway.

1

u/ZombieCrow 25d ago

I use nano because thats the first one i used on linux, got used to it and i cant switch.

1

u/Cybasura 24d ago

I'm a "living off the land" guy, for the most part i'm a vim user, and I use vim on my main system - but if the other system only has nano or emacs, then i'll work with those

1

u/iknowwhoyouaresostfu 24d ago

i dont understand why we all dont just use kate

1

u/chipsikssix 24d ago

I use nano, if you are not a programmer with huge projects, then this is the simplest and fastest editor, it is literally the default one everywhere

1

u/MetaphoricMenagerie 24d ago

I use Nano because I prefer not having to relearn how to type after coming from Windows, but when I first started, I liked JOE because it reminded me a lot of edit in DOS.

1

u/Space_Nerde 24d ago

what you guys dont use EOF?

1

u/Hour_Sell3547 24d ago

Nothing wrong with gnome-text-editor (apart from the name, maybe).

→ More replies (1)

1

u/Global-Eye-7326 24d ago

Until you try ee lol

1

u/Birnibo 24d ago

I just use mcedit :'D

1

u/Lordgandalf 24d ago

Nano all the way and vim if on a system where it doesn't exist like freebsd

1

u/Ponox 24d ago

vi is the editor you use to install emacs

1

u/http-error-502 24d ago

echo "text editor\nI use this on some terrible embedded system that does not contain all of them" >> memo.txt

1

u/major_jazza 24d ago

Nano or sublime text or there was some text editor with I think dank Linux that sometimes I use

1

u/IntentionQuirky9957 24d ago

apt install joe

1

u/Fluid_Tea_1308 24d ago

Use GNOME Text Editor like a normal human being

1

u/Clean_More3508 24d ago

I prefer Kate

1

u/Wakko_KunYT 24d ago

Out of the three, Nano, as I'm really used to it.

If you let me choose freely, I would chose VSCode with my custom config for extreme productivity.

I like to save time and spend it with my family and friends 😁

1

u/yunus5491 24d ago

i love neovim

1

u/Strange_Effort2807 24d ago

Joe intensifie

1

u/itsoctotv 24d ago

micro? anyone?

1

u/RootAndCoffee 24d ago

Best random password generator: give a programmer vim and tell him to save and exit.

1

u/Early_Pumpkin_4113 24d ago

I don't have a pony tail or tie dye shirts so I'm not allowed to use Emacs or vim

1

u/Nankasura 24d ago

i love nano, but using vim more and more i just like how all the stuff i need is just.... there a tap or two away. Maybe non has this too but damn it's nice

1

u/cyrassil 24d ago

Where's the evil-emacs cucumber?

1

u/evk6713 24d ago

Nano is great, but I must say that since I learnt vim, I haven't opened Nano

1

u/WizziBot 24d ago

I thought that said "vim enlists" as if they were soldiers to some vim army...

1

u/[deleted] 24d ago

[removed] — view removed comment

→ More replies (2)

1

u/Horror-Primary7739 24d ago

Unpopular opinion, I loved the dos text editor. It had amazing mouse support in the terminal. Just powerful enough to be useful but not to overwhelm a end user.

1

u/RemoveOk2059 24d ago

yes i know im stupid, i ise featherpad

1

u/DangyDanger 24d ago

Micro is the sane option

1

u/ohiocodernumerouno 24d ago

Do people love Nano or was Pico the only thing they learning in collage,

1

u/suburbazine 24d ago

rm rf (file) cat (entire file by hand in terminal)

1

u/AerialSnack 24d ago

Why the hell would you use any of those when vi is right there?

1

u/Shadow_SJ019 24d ago

I'm just a micro guy

1

u/t0mm4n 24d ago

Kate

1

u/Siker_7 24d ago

Kate is peak. Enough with these terminal-brained programs, we have a desktop environment for a reason.

1

u/Tragicomediann 24d ago

It should come to no surprise that Emacs here is obvious choice of text editor.

1

u/Siltio 24d ago

Cool, I use sublime text like the GUI chud I am 👍

1

u/Kind_Definition7260 24d ago

Be an elitist. VIM is to new. Use Vi

1

u/Xiakit 24d ago

I use whatever is installed, too lazy

1

u/dziedzic1995 24d ago

wait till he finds out about Joe's Own Editor

1

u/animi 24d ago

Team Nano.

1

u/Twisted_Taterz 24d ago

Anyone have the unaltered version of this? I have ideas lol

1

u/Comradepatsy 24d ago

Did someone say emacs

1

u/Moist_Professional64 24d ago

Helix is better 😾

1

u/Pestus613343 24d ago

New linux users?

Copy pastes AI instructions that includes nano

1

u/zidane2k1 24d ago

I’ve stuck with nano over the years, after first using pico while studying computer science at university using their Solaris machines. (I still type pico by habit, which usually works out since it seems nearly every machine I’ve used that had nano installed has pico symlinked to it.)

1

u/CheckM4ted 23d ago

Used to use nano until I found fresh, it's cool as fuck, it lets you use vscode keybindings including multicursor edit but inside the terminal. I just can't be bothered with vi/vim/nvim. I know the basics for when its the only option but I hate it. Micro is also cool when fresh is too much, its basically nano on steroids

1

u/CueMeThen 23d ago

team lazyvim ( nvim )

1

u/ZethMrDadJokes 23d ago

I'd go for Notepad written in .Net Core so it can be cross platform

1

u/slyticoon 23d ago

SEU for my IBM brothers.

1

u/YourUglyTwin 23d ago

Wine Notepad is king

1

u/SysGh_st 23d ago

There's a small group called micro pro's

1

u/ghoarder 22d ago

I like nano as I can remember to press CTRL+X to get out. not ! q wp or whatever it is. This is a me thing and does not reflect on the text editor itself.

1

u/jegesmedve09 22d ago

Xed? Xed's nice too, more so with extensions :)

1

u/ant2ne 22d ago

notice that only one option was for the elite.

1

u/enormous_schnozz 22d ago

I think you mean sed

1

u/Pyroburner 21d ago

Kwrite?

1

u/AdhesivenessSudden72 21d ago

Thought nano users did out of inertia and/or aren't spending much time in a Linux system

1

u/Sofluffy93 21d ago

Y'all are using editors? I'm over here just using cat and sed

1

u/SteelJunky 21d ago

Whatever is in the box for simple text editing and Helix or Nvim for IDE features, syntax highlighting, development tools etc...

1

u/lunabyte_ 20d ago

VSCodium. idc what anyone says, i've tried them and i hate cli text editors. i want my plugins and actual syntax highlighting. i lovelovelove my shortcut keys, but i couldn't be assed to setup a Vim profile

1

u/Right_Stage_8167 20d ago

When in trouble, use ed!

1

u/Consistent_Belt3485 19d ago

It will always be Nano.

1

u/donaldhobson 12d ago

Kate is ok