this post was submitted on 04 Jul 2023
15 points (100.0% liked)

Programmer Humor

19331 readers
20 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 1 year ago
MODERATORS
 

IMHO, it's a horrible hack that is just broken. It's obscure and we need to rewrite it because it has a bad structure. ^X^Cquit^[ESC][ESC]^C

top 9 comments
sorted by: hot top controversial new old
[–] stebo02@lemmy.dbzer0.com 4 points 1 year ago (2 children)

The best way I know to quit vi is by turning off your computer

[–] Olap@lemmy.world 1 points 1 year ago

Why would you quit vim?

[–] master@lem.serkozh.me 1 points 1 year ago

you can also accomplish that by turning off city's electrical grid

[–] magmaus3@szmer.info 1 points 1 year ago (2 children)

ESC + :q!

ESC to enter normal mode (if you're in a different mode like insert) : (colon) to enter commands q to quit ! (or a) to use the quit command withiut keeping any changes

[–] sci@feddit.nl 2 points 1 year ago

He's speaking the language of the gods..

[–] Lifter@discuss.tchncs.de 1 points 1 year ago

ESC + (shift) ZZ is faster and also saves your changes!

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

IMHO it's a complex, temporary work around with a few issues.

Also vim > emacs

[–] a253040@midwest.social 1 points 1 year ago

I'm absolutely guilty of self-documenting code, but mostly because I'm sick of everyone else's lying comments.

[–] nyan@lemmy.cafe 1 points 1 year ago

Hey, now. It is possible to write readable Perl code—it's just less interesting that way. 😜