this post was submitted on 09 Jun 2025
569 points (97.5% liked)

Programmer Humor

30991 readers
1233 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] kat_angstrom@lemmy.world 99 points 10 months ago (2 children)

I don't know why there's so much hate for Vim. It's simple- just use it as your default text editor since you first started using computers, and keep using it forever, and problem solved!

[–] TheFogan@programming.dev 71 points 10 months ago (3 children)

Setup for the overused joke - I've been using vim since I first started using a computer, I just can't quit.

[–] Heathcliff@lemm.ee 3 points 10 months ago

Right now I'm at the hospital in the exam yr colon queue! Maybe it helps U too.

load more comments (2 replies)
[–] dohpaz42@lemmy.world 6 points 10 months ago* (last edited 10 months ago) (1 children)

:set nocompat

Why VIM decided to make itself run just like VI (by default) is beyond me. Isn’t the long name “VI Improved”?

[–] nous@programming.dev 16 points 10 months ago

Vims defaults are quite crap overall. It is why everyone needs 100s of lines of configs and many plugins to turn it into something decent. Well worth the setup but it could go a long way to making things nicer to use out the box.

[–] Endmaker@ani.social 34 points 10 months ago* (last edited 10 months ago) (7 children)

Personally, I have seen so many memes about exiting vim that by the time I got to use it for the first time, exiting it was a no-brainer.

For any newbies out there, the command is

:wq
[–] Malix@sopuli.xyz 30 points 10 months ago (1 children)

Just to add: possible need to tap esc first, as your random flailing probably put you in insert mode, or something more exotic.

And only add w if you want to save the file. :q! If you don't

[–] victorz@lemmy.world 7 points 10 months ago (1 children)

! If you edited the buffer at all. 👍

[–] Malix@sopuli.xyz 8 points 10 months ago

With random flailing, most likely

[–] dohpaz42@lemmy.world 16 points 10 months ago* (last edited 10 months ago) (2 children)

😳

:w = write; or overwrite if the file already exists.

Please don’t give blanket destructive advice.

load more comments (2 replies)
[–] TheFogan@programming.dev 14 points 10 months ago (1 children)

also worth noting you open vim the first time, you get a huge ass splash screen telling you how to exit

load more comments (1 replies)
[–] elvith@feddit.org 6 points 10 months ago

And if you panicked before and fucked up the opened file while hammering on the keyboard:

:q!
[–] Badabinski@kbin.earth 5 points 10 months ago (1 children)

There's also ZZ 👉😎👉 Same caveats apply, smash that fukken esc key (for bonus points rebind caps lock as esc) then ZZ Top your way out of that shit.

load more comments (1 replies)
[–] T156@lemmy.world 5 points 10 months ago

:x is also an alternative to save and quit.

Equally valid for the facial expression you'd make upon finding that out.

load more comments (1 replies)
[–] Landless2029@lemmy.world 26 points 10 months ago (2 children)

I've recently started administering windows headless. PowerShell over SSH.

Don't have this problem on windows server!

It doesn't even have a terminal text editor

I have to install nano or use powershell commands through hoops of fire just to edit a line in a file.

Or download the file via scp, edit and reupload.

Pure Insanity.

[–] vithigar@lemmy.ca 13 points 10 months ago (7 children)
[–] Kojichan@lemmy.world 5 points 10 months ago

Classic DOS editor for text files, batch coding, and QBasic coding. Good times.

load more comments (6 replies)
load more comments (1 replies)
[–] supersquirrel@sopuli.xyz 18 points 10 months ago (22 children)

Go beyond the lazy memes and see for yourself why it has such a loyal cult!

https://openvim.com/

[–] IrateAnteater@sh.itjust.works 13 points 10 months ago (2 children)

The loyal cult is the result of Stockholm syndrome.

[–] supersquirrel@sopuli.xyz 16 points 10 months ago (1 children)

Stockholm syndrome came from a bs flawed study so shrugs

[–] QuazarOmega@lemy.lol 14 points 10 months ago

That's exactly what a Stockholm syndrome victim would say!

[–] Shanmugha@lemmy.world 6 points 10 months ago

Of course. We just can't quit

[–] lobut@lemmy.ca 8 points 10 months ago* (last edited 10 months ago) (1 children)

I use VS Code mainly and I always want to go to the end of a line and beginning. On Mac it's like CTRL+E and CTRL+A respectively. On Windows, I was like, I guess I could do Windows Key and arrows but it felt off. Installing Vim bindings on VS Code just fixed this all for me. I love it.

[edit] for non-VIM users, you can skip words and go-to braces (and delete what's in them) and highlight within quotes very easily ... for function search, the built-in VS Code is really good too. I also have Harpoon installed to hop between files. If it doesn't appeal to you, then that's cool too! Whatever keeps you in there. [/edit]

I've tried setting up my own vim stuff and I always bail out because I can't figure something out. I feel like I need to really sit with it and I'd have the perfect set up for me.

Lastly, I've installed vim for zsh and it's the best. I can hop all around my terminal and highlight and remove things. It's so beautiful.

[–] PrinzKasper@feddit.org 4 points 10 months ago (1 children)

I use VS Code mainly and I always want to go to the end of a line and beginning.

Soo... The end key and pos1 key?

[–] lobut@lemmy.ca 4 points 10 months ago

lol yes I understand I know I sound silly. My home/end aren't typical on my keyboard. It's like function and stuff, which breaks my flow for something I do so often.

load more comments (20 replies)
[–] andrewth09@lemmy.world 9 points 10 months ago (1 children)

You have heard of :wq, but have you heard of ZZ

[–] victorz@lemmy.world 4 points 10 months ago (4 children)
load more comments (4 replies)
[–] swizzlestick@lemmy.zip 5 points 10 months ago

An old Buffalo NAS box made me learn vi. Because that's all it had.

Yes, this comic speaks to me.

[–] Nachtnebel@lemmy.dbzer0.com 5 points 10 months ago (2 children)
load more comments (2 replies)
load more comments
view more: next ›