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

Programmer Humor

36239 readers
504 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.

top 50 comments
sorted by: hot top controversial new old
[–] nautilus@lemmy.dbzer0.com 169 points 2 years ago (11 children)
[–] folkrav@lemmy.world 132 points 2 years ago* (last edited 2 years 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 152 points 2 years 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 2 years 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 19 points 2 years ago (5 children)

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

load more comments (5 replies)
[–] reverendsteveii@lemm.ee 37 points 2 years 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 2 years ago (3 children)

That’s it’s job

What else is there for it to do?

load more comments (3 replies)
[–] hemko@lemmy.dbzer0.com 18 points 2 years ago

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

load more comments (1 replies)
[–] marduk@lemmy.sdf.org 52 points 2 years ago* (last edited 2 years 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

[–] locuester@lemmy.zip 27 points 2 years ago (3 children)

nano gang checking in.

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

load more comments (3 replies)
load more comments (7 replies)
[–] cupcakezealot@lemmy.blahaj.zone 127 points 2 years ago (1 children)

when you click enable vim it should just start nano

[–] Grass@sh.itjust.works 40 points 2 years ago (2 children)

I hate when I use visudo and it opens in nano and I try to use vi controls

[–] jodanlime@midwest.social 21 points 2 years ago (1 children)
load more comments (1 replies)
load more comments (1 replies)
[–] Gentoo1337@sh.itjust.works 122 points 2 years ago (2 children)

Why would I want to exit vim?

[–] DWin@sh.itjust.works 33 points 2 years ago (11 children)

I tmux my vim session so I never have to exit it, I just end the session and NOTHING OF NOTE HAPPENS

load more comments (11 replies)
load more comments (1 replies)
[–] Serpardum@lemmy.world 87 points 2 years ago (1 children)

It's very easy to terminate vim. I just use the power button.

[–] DNOS@reddthat.com 35 points 2 years ago (3 children)

Uh... so u guys don't change the PC each time that's cool I would definitely try that ...

load more comments (3 replies)
[–] psud@aussie.zone 84 points 2 years ago (7 children)

If anyone needs the command: :q!

If you want the computer to ask if you're sure: :q

If you want to save: :wq

[–] intensely_human@lemm.ee 67 points 2 years ago (4 children)

You’re nullifying that safety measure by doing this you know

[–] Oszilloraptor@feddit.de 22 points 2 years ago

Some people just want to see the world burning

load more comments (3 replies)
[–] PoolloverNathan@programming.dev 22 points 2 years ago

:wq will write even if you didn't change anything; :x won't. (similar to :w vs :up)

[–] Zacryon@feddit.de 22 points 2 years ago

If you want to save: :wq

Or :x

load more comments (4 replies)
[–] rtxn@lemmy.world 78 points 2 years ago (20 children)

I don't mean to be all "BuT iT's cLOseD SoURce" but you should give Logseq or Zettlr a try. They're similar WYSIWYG markdown editors, but also FOSS. Zettlr also has vim keys.

Plus Obsidian is horrible at editing tables.

[–] doeknius_gloek@feddit.de 49 points 2 years ago (3 children)

Also not a fan about the closed source thing, but I like about Obsidian that it's all just markdown. If I ever need to ditch it, I can keep and use my existing files as they are.

Would this also be possible with Zettlr or Logseq?

load more comments (3 replies)
[–] Jorgelino@lemmy.ml 25 points 2 years ago (1 children)

Thanks for the suggestions, I'm actually checking a couple new editors out as i'm looking for an alternative to OneNote. Just started messing with this one, but i'm not sure if i'll settle for it yet.

load more comments (1 replies)
load more comments (18 replies)
[–] psycho_driver@lemmy.world 75 points 2 years ago (6 children)

I mean, it's true.

I've been using linux pretty exclusively at home for almost 25 years now. Program. Script. Work in the shell a lot, and the other day I had to use vim and it took me a while to remember the basic commands. I'm a nano guy :\

[–] gornius@lemmy.world 19 points 2 years ago

Honestly, if you work in a shell a lot, learning vim is a great investment. You're gonna fly through files editing them faster than with any IDE.

[–] DaTingGoBrrr@lemmy.ml 18 points 2 years ago (4 children)

I also started off using nano. Have you tried Micro? It's like nano on steroids and with good keybindings

load more comments (4 replies)
load more comments (4 replies)
[–] flop_leash_973@lemmy.world 51 points 2 years ago (11 children)

A lot of my personal dislike for VIM would be done away with if it just had a helpful common keys cheat sheet (basic cursor navigation, edit mode, exit with and without saving, etc) at the bottom of the editor window like Nano does.

load more comments (11 replies)
[–] user224@lemmy.sdf.org 51 points 2 years ago (1 children)

Big brain time, pkill vim

Vim: Caught deadly signal TERM
Vim: Finished.
Terminated

[–] dreugeworst@lemmy.ml 31 points 2 years ago (2 children)

So from within vim :!pkill vim?

load more comments (2 replies)
[–] thechadwick@lemmy.world 33 points 2 years ago* (last edited 2 years ago) (1 children)

You don't change Vim, Vim changes you. https://youtu.be/9n1dtmzqnCU

*edit: shortened and thanks! Did not know and gross..

[–] Vash63@lemmy.world 32 points 2 years ago (3 children)

There's a few different ways to write that command in vim, does it accept all of them?

[–] Jorgelino@lemmy.ml 16 points 2 years ago (1 children)

I'm honestly not super familiar with vim. I tried :q! and it accepted it, what are some other ways?

load more comments (1 replies)
load more comments (2 replies)
[–] Luvon@beehaw.org 27 points 2 years ago

If you want to learn vim, try the command vimtutor in a terminal

[–] rustbuckett@lemmings.world 24 points 2 years ago (1 children)

I just can't quit you, vim!

load more comments (1 replies)
[–] mdurell@lemmy.world 24 points 2 years ago (1 children)
[–] darcy@sh.itjust.works 21 points 2 years ago (2 children)

if your desktop environment uses alt+f4 to quit 💀

load more comments (2 replies)
[–] HovringSquidworld97A@beehaw.org 23 points 2 years ago

That is a hilarious, yet useful test.

[–] homura1650@lemmy.world 23 points 2 years ago* (last edited 2 years ago) (1 children)

Tricky question, but I think I have a solution:

:!readlink /proc/$PPID/fd/* | grep "$(dirname %)/.$(basename %).sw" | xargs -I{} rm "{}" ; kill -9 $PPID

load more comments (1 replies)
[–] Crass_Spektakel@lemmy.world 23 points 2 years ago

That is just hilarious but also...

I just remembered that Bram Moolenaar, the author of vim has recently died...

He was a real good person. Back when he released his first vim for Amiga Computers I exchanged some emails with him and he handled even my less smart suggestions very professional.

I just take the chance to remind everyone to spend some money for his Uganda Charity.

[–] amio@kbin.social 19 points 2 years ago (3 children)

Funny, but unironically a pretty good idea.

load more comments (3 replies)
[–] hai@lemmy.ml 19 points 2 years ago (4 children)

I think this is the most upvotes I’ve seen on a Lemmy post….

load more comments (4 replies)
load more comments
view more: next ›