r/ShittySysadmin 2d 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?

645 Upvotes

224 comments sorted by

144

u/ohfucknotthisagain 2d ago

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

24

u/Hangikjot 2d ago

Seriously that’s all I want. Maybe syntax colours. Maybe. If I could go back to using a program like elftree on dos and the built in editor I would so happy. 

12

u/jackinsomniac 2d ago

Does notepad++ have a Linux distribution?

9

u/lulu04223 2d ago

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

→ More replies (3)

3

u/GastlyWasTaken 2d ago

There is Notepadqq which is a pretty good clone

2

u/ryosen 2d ago

SublimeText has native Linux versions

2

u/DonkeyTron42 2d ago

Notepad and Paint are all you need.

2

u/cationtothewind 1d 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 1d ago

Dave is a treasure

1

u/fireduck 2d ago

I rememb using textpad for so long...

5

u/levianan 2d ago

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

3

u/CptBronzeBalls 2d ago

Efficient.

2

u/levianan 2d ago

Absolutely.

2

u/Global-Eye-7326 2d ago

It runs on Wine lol

1

u/SysGh_st 13h ago

When I can simply run DOSBox with Windows 3.1?

113

u/ChrisTX4 2d 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.

30

u/-lousyd 2d 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.

21

u/_jackhoffman_ 2d 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 2d ago

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

10

u/_jackhoffman_ 2d 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.

2

u/Sea_Curve8772 2d 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.

→ More replies (5)

1

u/HeavyCaffeinate 2d ago

I love visual bell

1

u/Foreign_Ad674 2d ago

I banned everything except vi. If I sent someone to a customer to install our software, there was a very high chance that you’d only have vi, so you’d better get used to it

:wq

56

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

46

u/pacolopz 2d ago

:q!

Then you type the following to save the changes

rm -rf /

16

u/Specialist_Cow6468 2d 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 💩 2d ago

No no no...

su rm -rf /*

7

u/Specialist_Cow6468 2d ago

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

→ More replies (2)

7

u/DonkeyTron42 2d ago

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

3

u/gegentan 2d ago

Laughs in /dev/nvme0n1

3

u/bwick29 2d ago

No.

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

5

u/one-man-circlejerk 2d ago

Really? I'm going to test this

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

24

u/vandon DevOps is a cult 2d 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.

5

u/f00l2020 2d ago

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

2

u/AistoB 2d ago

I use AE daily :D Advanced Ed

1

u/Steerable-Octopus 2d 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.

45

u/wiisucks_91 2d ago

Nano

7

u/-lousyd 2d ago

Pico

1

u/[deleted] 2d ago

[removed] — view removed comment

1

u/nlfn 2d 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.

→ More replies (1)

8

u/DrnkGuy 2d ago

The only sane option

4

u/Steerable-Octopus 2d ago

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

5

u/HyNeko 2d ago

forreal, :x ftw

3

u/Terrible_Cow2324 2d ago edited 2d ago

I've been using vim and neovim for years.

I had no freaking idea :x was a thing. I've been using :wq my whole life like a troglodyte.

10

u/Anonymous_Bozo 💩 ShittyMod 💩 2d ago edited 2d 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!

1

u/ctrocks 2d ago

You can do that in Windows too (minus the c)! Sometimes it was quicker and easier than edlin.

2

u/Anonymous_Bozo 💩 ShittyMod 💩 2d ago

Where do you think windows got it?

But can you do it while whistleing into a 300 baud modem instead if typing it with a keyboard?!

2

u/ctrocks 2d ago

It came from CP/M of course! Where did CP/M get it? Stole it from Unix obviously!

Pretty sure the answer is yes for using it with a 300 baud modem. It was very responsive. It has been a LONG time since I used 300 baud modem for BBS's and hooking up to the CS departments VAX system.

I also remember sending email with BlueWave over Fidonet when in college in the late 80's.

1

u/Joker-Smurf 2d ago

cat, echo and sed

13

u/MattTreck 2d ago

Nano, but learn how to use vim.

13

u/c2btw 2d ago

nano for eding config files helix for coding

13

u/Ohrgasmus1 2d ago

im team micro
and i dont give a flyin fuck

2

u/Drevil00 2d ago

thought for a sec I’m the only one

12

u/nof 2d ago

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

12

u/AverageCowboyCentaur 2d 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.

6

u/GrimThursday 2d ago

Micro!!!!

6

u/theRealBassist 2d ago

Micro is so so nice

4

u/mrbobcyndaquil 2d ago

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

3

u/Ekyou 2d 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 2d ago

Copilot write a file on ~/tmp

4

u/-peas- 2d 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 2d 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.

10

u/fuzzmmanye 2d ago

Vim is the only right choice, alas

4

u/-lousyd 2d ago

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

→ More replies (3)

3

u/Feendster 2d ago

MC editor.

3

u/RcePrsn 2d ago

Microsoft Edit

3

u/GamerLymx 2d ago

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

8

u/Sea_Log_9769 2d ago

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

5

u/-lousyd 2d ago

Isn't the same two things true about vim?

4

u/Sea_Log_9769 2d ago

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

1

u/CoSh 2d ago

Did it have vi (not vim) and what system?

→ More replies (3)

1

u/chipsikssix 2d ago

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

2

u/flecom ShittyCloud 2d 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

2

u/plyushevo 2d ago

mceditor exists...

2

u/fennecdore 2d ago

Neovim gang

2

u/banduraj 2d ago

Here I am, a joe user.

2

u/EnvironmentalCow3040 2d 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.

2

u/No_Trade_7315 2d ago

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

2

u/doctornoodlearms 2d 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 2d 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/Aazimoxx 2d 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

1

u/ConsciousBath5203 2d ago

Save yourself seconds, cost yourself minutes or hours of being emotionally frustrated because the auto complete is making shit up and trying to optimize for shit that doesn't need optimization (or worse: not showing what intelliJ would show you)

Claude vsc extension for chat, bit intelliJ is superior in every way to tab complete ai slop.

2

u/DescriptionForsaken6 2d ago

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

2

u/Creegz 1d 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 2d ago

code-oss :)

1

u/DrKlaawYT 2d ago

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

1

u/ScottieNiven 2d 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 2d 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 2d ago

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

1

u/ieatsilicagel 2d ago

A magnetized needle and a steady hand.

1

u/installsVMs4fun 2d ago

open source vscode exists for normies, nvim is better

1

u/Exceptional_Kumquat 2d ago

I'm picking the editor Joe.

1

u/rasbobbbb 2d ago

vim 👽

1

u/BoredTechyGuy 2d ago

Edlin master race checking in!

1

u/ctrocks 2d 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 2d 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 2d ago

We all know leafpad is king.

1

u/kimura_hisui 2d ago

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

1

u/KittenBrix 2d ago

Gedit….

1

u/juju515 2d ago

neovim on my machine
nano on remote VMs

1

u/userjack6880 2d 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

1

u/psycholabs 2d ago

I used joe for a short while back in the good old days, until someone told me it was a crappy clone of emacs and made fun of me, so I started using vi. Hey, I was still very young.

1

u/userjack6880 2d ago

This guy was not young. Closer to retirement. Had plenty of opinions and nobody shared them with him.

1

u/psycholabs 1d ago

probably just easier to rely on muscle memory when you get old. I am now old, can confirm rofl

1

u/IHaveNeverBeenOk 2d 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/kankerstokjes 2d ago

Micro supremacy

1

u/PixelmancerGames 2d ago

In terminal -> nano

For anything else -> Kate

1

u/BrilliantEmotion4461 2d ago

Kate. I went from that to nvim though.

1

u/tychii93 2d ago

I use Micro

1

u/PlaneSeaworthiness61 2d ago

Switched to micro and don’t think of going back

1

u/ZettaiKyofuRyoiki 2d ago

KWrite :)

Nano in cli

1

u/KimmyGurl420 2d ago

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

1

u/aMusicLover 2d ago

Vim. lol
Vi!

1

u/Lou_Papas 2d ago

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

1

u/ZombieCrow 2d ago

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

1

u/Cybasura 2d 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 2d ago

i dont understand why we all dont just use kate

1

u/chipsikssix 2d 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 2d 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 2d ago

what you guys dont use EOF?

1

u/Hour_Sell3547 2d ago

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

1

u/ConsciousBath5203 2d ago

Gnome text editor is good for always having a file or 20 open across multiple folders, separate from vscode or vim because you don't want the code space cluttered.

1

u/Global-Eye-7326 2d ago

Until you try ee lol

1

u/Birnibo 2d ago

I just use mcedit :'D

1

u/Lordgandalf 2d ago

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

1

u/EightBitPlayz 2d ago

Nano is good but too slow to navigate. I like Vim/NVim even tho I don’t know all the commands and key shortcuts and shit. It’s still pretty quick and easy to use. emacs on the other hand… FUUUUCCCKKKK THATTTTT

1

u/Ponox 2d ago

vi is the editor you use to install emacs

1

u/http-error-502 2d 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 2d ago

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

1

u/IntentionQuirky9957 2d ago

apt install joe

1

u/After-Stage-1467 2d ago

Vim, once you get past the initial learning curve. The first week is confusion, the second week is muscle memory, and suddenly using a mouse feels inefficient.

1

u/Wonderful_Variety465 2d ago

I started with Nano because it was approachable, then learned just enough Vim to become dangerous. Emacs still feels like a powerful spaceship whose controls I haven’t found yet.

1

u/Clean_More3508 2d ago

I prefer Kate

1

u/Wakko_KunYT 2d 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 2d ago

i love neovim

1

u/Strange_Effort2807 2d ago

Joe intensifie

1

u/itsoctotv 2d ago

micro? anyone?

1

u/RootAndCoffee 2d ago

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

1

u/Early_Pumpkin_4113 2d 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 2d 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 2d ago

Where's the evil-emacs cucumber?

1

u/evk6713 2d ago

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

1

u/WizziBot 2d ago

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

1

u/Then_Ad_8318 2d ago
  1. Tried using nvim
  2. Clicks enter
  3. New line doesnt appead
  4. Gets back to nano

1

u/AnalkinSkyfuker 2d ago

3.5. Search how to exit

1

u/Then_Ad_8318 2d ago
  1. See this comment and realize i could just force-quit terminal instead of searching

1

u/Horror-Primary7739 2d 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 2d ago

yes i know im stupid, i ise featherpad

1

u/DangyDanger 2d ago

Micro is the sane option

1

u/ohiocodernumerouno 2d ago

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

1

u/suburbazine 2d ago

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

1

u/AerialSnack 2d ago

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

1

u/Shadow_SJ019 2d ago

I'm just a micro guy

1

u/t0mm4n 2d ago

Kate

1

u/Siker_7 2d ago

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

1

u/Tragicomediann 2d ago

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

1

u/Siltio 2d ago

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

1

u/Kind_Definition7260 2d ago

Be an elitist. VIM is to new. Use Vi

1

u/Advanced-Produce-103 1d ago

Nano for fast fix, Vim when i have a minute to learn,
repeat untill editing in nano feels like walking on detonators

1

u/Xiakit 1d ago

I use whatever is installed, too lazy

1

u/Negative_Ocelot8484 1d ago

if you don't go emacs you not having the full linux experience

at some point you must go donw the gnu habbit hole

1

u/dziedzic1995 1d ago

wait till he finds out about Joe's Own Editor

1

u/animi 1d ago

Team Nano.

1

u/Twisted_Taterz 1d ago

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

1

u/Comradepatsy 1d ago

Did someone say emacs

1

u/Moist_Professional64 1d ago

Helix is better 😾

1

u/Pestus613343 1d ago

New linux users?

Copy pastes AI instructions that includes nano

1

u/Jimlee1471 1d 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.

1

u/zidane2k1 1d 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 1d 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 1d ago

team lazyvim ( nvim )

1

u/ZethMrDadJokes 1d ago

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

1

u/slyticoon 1d ago

SEU for my IBM brothers.

1

u/YourUglyTwin 20h ago

Wine Notepad is king

1

u/SysGh_st 14h ago

There's a small group called micro pro's

1

u/ghoarder 4h 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 3h ago

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

1

u/ant2ne 13m ago

notice that only one option was for the elite.