this post was submitted on 25 Oct 2023
2237 points (99.2% liked)

Programmer Humor

32558 readers
340 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

I'm trying out Obsidian for taking notes, and this made me laugh.

you are viewing a single comment's thread
view the rest of the comments
[–] nautilus@lemmy.dbzer0.com 168 points 1 year ago (9 children)
[–] folkrav@lemmy.world 132 points 1 year ago* (last edited 1 year ago) (5 children)

It's hard to hate nano, but IMHO there also isn't anything to like in particular either. It's basically a TUI notepad. It's there, it lets people edit files... and that's pretty much all there is to it.

[–] killeronthecorner@lemmy.world 151 points 1 year ago (1 children)

You can use nano without having to read anything about nano. That might be the only thing that is better about it than vim, but it's a damn important thing.

[–] nautilus@lemmy.dbzer0.com 69 points 1 year ago (1 children)

I have zero patience when trying to make small adjustments to files, which is what my command line text editor should be for. Nano just has everything at the bottom in case you forget (I do, frequently) so the workflow is ridiculously streamlined for me

[–] killeronthecorner@lemmy.world 18 points 1 year ago (1 children)

Absolutely. It also has whole-line cut/uncut which is a godsend when working with config files

[–] indepndnt@lemmy.world 10 points 1 year ago (1 children)

Ironically, that's like the one thing I've learned to do in Vim.

[–] fushuan@lemm.ee 5 points 1 year ago* (last edited 1 year ago) (2 children)

Because it's easy, dd to delete a line and p to paste it somewhere else.

[–] DaPorkchop_@lemmy.ml 3 points 1 year ago (1 children)

Personally I'd be somewhat nervous using dd to edit parts of a text file, but you do you :)

[–] fushuan@lemm.ee 2 points 1 year ago

Well, if you dd+p you paste it back again, and then it's in the clipboard so you can p it in other places. In any case you can u(ndo) it without issues.

[–] bpm@lemmy.ml 2 points 1 year ago

yy to copy, dd to cut, p to paste. Need to move 5 lines at once? No problem, move to the first line and use d5d, and p to paste it. Vim gets a bad rap for being confusing, but it's so fast to move text around once you get the hang of it.

[–] reverendsteveii@lemm.ee 36 points 1 year ago

it's basically a TUI notepad. It's there, it does one job and that's all there is to it

That's what the people who like it like about it.

[–] ILikeBoobies@lemmy.ca 33 points 1 year ago (3 children)

That’s it’s job

What else is there for it to do?

[–] folkrav@lemmy.world 9 points 1 year ago* (last edited 1 year ago)

I mean, why compare it with vim at all then. Apples and oranges...

[–] Amends1782@lemmy.ca 8 points 1 year ago

Yeah it literally follows the UNIX philosophy

[–] Spider89@lemm.ee 8 points 1 year ago

Forget KISS, amirite.

[–] hemko@lemmy.dbzer0.com 18 points 1 year ago

nano is just... There when you need a text editor for something. Simple and purposeful

[–] MonkderZweite@feddit.ch 1 points 1 year ago

It has syntax highlighting and mouse support.

[–] marduk@lemmy.sdf.org 52 points 1 year ago* (last edited 1 year ago)

I like nano because it has worked any time I needed it. I don't dislike nano because I'm not good enough at Linux to have ever run into its limitations

[–] penquin@lemm.ee 37 points 1 year ago (4 children)

I never get the need to use vim and nano exists.

[–] folkrav@lemmy.world 8 points 1 year ago (2 children)

I never get the need to use a mechanical pencil and graphite pencils exists

[–] nautilus@lemmy.dbzer0.com 6 points 1 year ago (2 children)

I’ll level with you: I’m kind of a moron.

If my command line text editor has its own bespoke integrated command line, then science has gone too far and we need to stop lmao

[–] nickwitha_k@lemmy.sdf.org 1 points 1 year ago* (last edited 1 year ago)

It's cool. We'll just write a lua plugin to extend science so that we can go too far enough.

[–] penquin@lemm.ee 2 points 1 year ago (1 children)

I'm struggling to see the connection here. I guess I don't need to fiddle with the mechanical pencil, it breaks very quickly? I don't want to go through changing those little sticks? Graphite pencil only needs to be sharpened? So, you're supporting using Nano? I'm a little confused

[–] folkrav@lemmy.world 2 points 1 year ago* (last edited 1 year ago) (1 children)

Yet many people prefer mechanical pencils. Are you against choice? What is there to get or "need"?

[–] penquin@lemm.ee 1 points 1 year ago (1 children)

Nah, this is not relative at all. Still, I know my kid hates mechanical pencils. I hate them, too.

[–] folkrav@lemmy.world 1 points 1 year ago (1 children)
[–] penquin@lemm.ee 2 points 1 year ago (1 children)

Relevant. RELEVANT!!!! Damn it. Ok you got me 😂 English is my second language (still not an excuse)

[–] folkrav@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

Fair enough! I'm an English second language speaker too, I understand the struggle!

But to answer about relevance: to me, text editors are just tools. I don't really care which one you use, as long as you do the job well. I use vim (or honestly, mostly vim bindings) everywhere I can as they're just second nature to me at this point, and I go around text much quicker when thinking in text objects than the typical Ctrl+Alt+... and home/end/pg up/pg down shortcuts. I could just as well work with Notepad++, it's just gonna slow me down.

So in that sense, it's just like a pencil. Some have preferences as to which pencils they like to write with. I like fountain pens and mechanical pencils. You seem to prefer graphite pencils, and guess you probably prefer ball pens ;)

[–] uzay@infosec.pub 8 points 1 year ago (2 children)

It just makes a lot of stuff way easier once you know how to use it. Switching out a word for another: two button-presses, duplicating a line: three presses, deleting 500 consecutive lines: five presses

[–] xilliah@beehaw.org 6 points 1 year ago (1 children)

What if I want to undo my life's mistakes.

[–] Illecors@lemmy.cafe 6 points 1 year ago (1 children)

Church of Emacs is always there ;)

[–] nickwitha_k@lemmy.sdf.org 1 points 1 year ago* (last edited 1 year ago) (1 children)

How do we work this? Do we alternate between trying to ruin people's lives with elisp and chasing the perfect .vimrc or lua - config? Maybe grab some bytes from /dev/urandom and send them to the editor whose first letter comes up first? What about holidays?

[–] Illecors@lemmy.cafe 2 points 1 year ago

I'm gonna go with yes 😁

[–] penquin@lemm.ee 1 points 1 year ago (1 children)

But you can do all that with nano and it is straight forward and you don't need to memorize any key combinations. I mean, I get it and no judgement here. I just use nano because it's easy and quick.

load more comments (1 replies)
[–] r1veRRR@feddit.de 2 points 1 year ago

I don't understand the need for Ctrl-C/V, when manually copying the text exists. I know it's snarky, but that's the level of difference we're talking about here. Or imagine, to delete a line, someone Right Arrows 50 times, then backspaces 50 times, instead of using the shortcut.

[–] bioemerl@kbin.social 1 points 1 year ago (2 children)

Vim really is an IDE, not a text editor. It's usable as an editor but overkill.

Nano serves a difference purpose. It's like telling someone on a bike that a mustang is better.

[–] kogasa@programming.dev 3 points 1 year ago (9 children)

Vim is absolutely not an IDE. It has no integrations with any language. It's just a powerful text editor. You can add language plugins and configure it to be an IDE.

load more comments (9 replies)
[–] TheGreenGolem@lemm.ee 1 points 1 year ago

So like Word vs Notepad?

[–] locuester@lemmy.zip 27 points 1 year ago (2 children)

nano gang checking in.

However, I’ve been forced over time to remember “:wq” to get unstuck should vim randomly appear.

[–] dukk@programming.dev 14 points 1 year ago

Alternatively, you can save a key and use :x (And :q! to quit without saving)

Yeah, that’s such a Vim user thing to say :P

[–] PoolloverNathan@programming.dev 1 points 1 year ago* (last edited 1 year ago) (1 children)

:up|cq to save a write cycle and signal an error to whatever opened Vim.

[–] locuester@lemmy.zip 3 points 1 year ago

How do u learn this voodoo

[–] ensignrick@startrek.website 8 points 1 year ago

I personally like nano but it's what I used first. So I learned the commands. Vim I still forget Everytime.

[–] habanhero@lemmy.ca 6 points 1 year ago

Pico gang reporting in.

[–] affiliate@lemmy.world 5 points 1 year ago

i’ve only ever used nano in the early stages of a gentoo install, when it’s too early to install vim and import my dot files 😈

[–] XEAL@lemm.ee 3 points 1 year ago

Here!

I hate terminal-based text editors

Nano seems quite user/idiot friendly

[–] nullpotential@lemmy.dbzer0.com 2 points 1 year ago (1 children)
[–] Troz@sh.itjust.works 2 points 2 months ago

I made that switch a few months ago just so I could cut, copy and paste without having to lookup how to do it. it's been great.