this post was submitted on 19 Nov 2023
233 points (95.7% liked)

Programmer Humor

32253 readers
146 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 29 comments
sorted by: hot top controversial new old
[–] deeply_moving_queef@lemmy.ml 33 points 11 months ago (2 children)
[–] Hupf@feddit.de 19 points 11 months ago

:q! is for quicksave

[–] r00ty@kbin.life 2 points 11 months ago (1 children)

I'm sorry, I have to take your first answer.

[–] Morphit@feddit.uk 2 points 11 months ago

Better hope you set undofile and undodir is writable.

[–] cryptix@discuss.tchncs.de 29 points 11 months ago (2 children)

Just :wq there won't be any doubts.

[–] camelCaseGuy@lemmy.world 12 points 11 months ago (1 children)
[–] Morphit@feddit.uk 6 points 11 months ago

ZZ whatever

[–] Pilokyoma@mujico.org 1 points 11 months ago
[–] Jumuta@sh.itjust.works 28 points 11 months ago (1 children)
[–] XEAL@lemm.ee 11 points 11 months ago* (last edited 11 months ago) (1 children)
[–] 30p87@feddit.de 9 points 11 months ago

:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3

[–] AlolanYoda@mander.xyz 9 points 11 months ago (6 children)

Question: why does nobody else save and exit with ":x" or ":x!"?

[–] rustydrd@sh.itjust.works 4 points 11 months ago* (last edited 11 months ago) (1 children)

No specific reason, but I'd rather be deep in the cold, cold ground before I quit with ":x" instead of ":wq".

[–] Derp@lemmy.ml 1 points 8 months ago

But... But :x is superior because it doesn't overwrite unchanged files with a new modified date :(

It's such an awkward letter to reach, also I'm stuck in my ways leave me alone

[–] loutr@sh.itjust.works 2 points 11 months ago

I guess by the time I came across :x, :wq was already too ingrained to bother switching.

[–] velox_vulnus@lemmy.ml 1 points 11 months ago* (last edited 11 months ago)

I was quite habituated with :x/:x!, but after switching to Kakoune, I use :wq/:wq!, because :x/:x! does not exist. Yes, it's one extra key, but I like the overall reduce in cognitive overhead.

[–] Strider@lemmy.world 1 points 10 months ago
[–] programmer_belch@lemmy.dbzer0.com 9 points 11 months ago (3 children)

My muscle memory is too strong from years of vscode before vim so I have :w mapped to C-s

[–] rustydrd@sh.itjust.works 16 points 11 months ago

This is Vim's evil mode

Hissss we're enemies

[–] AccountMaker@slrpnk.net 5 points 11 months ago (1 children)

I have the opposite situation, I had to willingly stop myself from typing :w while using Word. And I installed the vim extension in vscode, which leads to me typing :w when using someone else's setup.

[–] programmer_belch@lemmy.dbzer0.com 2 points 11 months ago

I still get lots of jkhl after some lines when I'm trying to move between lines

[–] hakunawazo@lemmy.world 8 points 11 months ago* (last edited 11 months ago) (1 children)

<esc><esc><esc>

:w

:wq

*many other tabs still open *

:qa

[–] rustydrd@sh.itjust.works 3 points 11 months ago

Hahaha, same!

[–] thepiguy@lemmy.ml 4 points 11 months ago

:wq and re-evaluate my lif- oh wait, I forgot to call the function

[–] KickAssDuke@lemm.ee 4 points 11 months ago* (last edited 11 months ago)

They look so lonely. Why not make them kiss?

:W

:M