this post was submitted on 18 Jul 2023
910 points (95.0% liked)

Programmer Humor

32730 readers
370 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] n3cr0@lemmy.world 88 points 1 year ago (1 children)

That meme clearly comes from an emacs fanboy.

[–] polle@feddit.de 12 points 1 year ago (6 children)

emacs

I actually don't know what emacs means. I only remember having struggles in understanding anyone who likes vim, because it mostly just confused me. But Probably its just what you are used to. The Meme is still funny, though.

[–] r00ty@kbin.life 17 points 1 year ago (6 children)

Don't discount the possibility that some people that use vim, are old enough to remember using vi, over a modem connection. When you know the keyboard shortcuts it can be a lot quicker too even now.

[–] Gork@sh.itjust.works 6 points 1 year ago (2 children)

Vi is incredibly snappy when it came to commands.

Want to save? :w

Want to quit? :q

Want to save and quit? :wq

Very elegant. GUI WYSIWYG doesn't come close when it comes to commands.

[–] r00ty@kbin.life 3 points 1 year ago

A lot of the things I'm using are generally hangovers from those low bandwidth days. I've opened a file and I know what I want is a way down? Not a problem 10-Page down to move 10 pages down the file without sending all that to the terminal.

What to cut the next 5 lines into the buffer? 5dd. Move to the line you want to paste to. Want to remove the next 5 characters? 5x. Often on a slow link moving your cursor along had a delay. But if you knew how far you needed to go you could do 30+arrow right to get the cursor to move directly there.

I think most are obsolete now, but I'm still used to using them out of habit mostly.

[–] tool@r.rosettast0ned.com 3 points 1 year ago

Man, this comment made me feel a little embarrassed at myself. I saw the shortcuts and thought about how I have a tradition of going to the top of the file when I'm done editing and about to save/quit. I always hit the shortcut for it and think "gg boys! Good game" and then quit out of vim.

Stop judging me.

load more comments (5 replies)
[–] n3cr0@lemmy.world 13 points 1 year ago* (last edited 1 year ago) (2 children)

vim is a little hard to get into, but from there its benefits pay off with lots of features. On the other hand there is emacs, with an even steeper learning curve (*cough* long inconvenient button combos!), but it's considered so powerful, some say it's a separate operating system.

[–] Reorder9543@social.fossware.space 20 points 1 year ago (1 children)

They say Emacs is an amazing OS, with the best calendar, to-do list, email client, etc. Just missing a good text editor.

[–] cnx@slrpnk.net 12 points 1 year ago (1 children)

Guess what, you can run Vim inside Emacs inside Vim inside Emacs now!

load more comments (1 replies)
[–] outdated_belated@lemmy.sdf.org 5 points 1 year ago* (last edited 1 year ago) (2 children)

emacs has a steeper learning curve? You can M-x <type stuff> tab to figure out how to do stuff, which is easier than Vim for learning IMO

load more comments (2 replies)
[–] jecxjo@midwest.social 8 points 1 year ago (1 children)

What's even more crazy is when you've used vim exclusively for 30 years to the point where you sit down at someone else's computer and you try to use their editor and you are completely lost. You fumble around like you're an elderly person who doesn't know what a computer is, type random letters all over. You look senile.

But then you show them on your computer how you can record a macro of your key commands and then use a regex to match different blocks of similar text and apply the same commands all at once. And because you used navigation based on words and lines rather than characters it all just works.

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

I think that's true of all editors, though. I ended up on the intellij side of things, and it means I'm clueless about VSCode's key patterns. I've only picked up ctrl-p so far, and keep having to remind myself "this is shift-shift in Microsoft"

[–] tool@r.rosettast0ned.com 5 points 1 year ago

VSCode is what made me finally switch away from vim for anything but minor edits. It's just too good.

I did set up vim keybindings in it, though.

load more comments (5 replies)
[–] flux@lemmy.ml 8 points 1 year ago (2 children)

It comes from the words "Eight Megs And Constantly Swapping".

Yeah, the name hasn't aged well..

load more comments (2 replies)
[–] toofarapart@lemmy.world 6 points 1 year ago (1 children)

For my vim journey it was the draw of being able to quickly navigate and manipulate text without ever needing my hands to move away from the home row on the keyboard, and being willing to put in the time and effort to push past the learning curve.

[–] tool@r.rosettast0ned.com 7 points 1 year ago

I first settled on vim as a teenager because I was a fan of... performing surprise penetration tests.

It defaults to opening files read-only, so you don't have to worry about the access/modified time on the file changing if you open one for... science reasons.

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

Nvim user so imo it would be funnier if it was about getting caught up in spending more time customising the editor than using it or something, but atm just reads like someone who only got as far as opening vim and not being able to figure out how to close it

[–] chandz05@lemmy.world 69 points 1 year ago (2 children)
[–] netburnr@lemmy.world 36 points 1 year ago* (last edited 1 year ago) (3 children)

You forgot to his escape twice first. You're in insert mode sir.

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

More like ... Just in case

[–] tool@r.rosettast0ned.com 4 points 1 year ago

More like ... Just in case

MY PEOPLE!

[–] kbotc@lemmy.world 3 points 1 year ago

META-c. My hands on meta and ESC is all the way over there

load more comments (1 replies)
[–] chinpokomon@kbin.social 12 points 1 year ago (1 children)
[–] cnx@slrpnk.net 8 points 1 year ago (2 children)

:q!<CR> is equivalent to ZQ

[–] flux@lemmy.ml 7 points 1 year ago

^Zkill -9 %1 is the only way.

kill -9 -1 if that doesn't work.

[–] PeriodicallyPedantic@lemmy.ca 5 points 1 year ago

This whole thread. I think you're just hitting random keys.

I think you mean to say ![4Zæ]>§??+

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

The editor so good people never learn to leave it.

[–] BearPerson@lemmy.ml 7 points 1 year ago

Take my angry upvote

[–] dukk@programming.dev 30 points 1 year ago (2 children)

Out of curiosity, I wondered what the original meme was. Found them and thought I’d share them:

Here’s the original: https://i.imgur.com/kERuZkW.jpg

And here’s the one that this is based off (slightly different): https://i.imgur.com/HFwENsd.png

[–] Xylight@lemmy.xylight.dev 9 points 1 year ago (1 children)

BTW, just in case you didn't know, you can put images directly in your comment with this:

![alt text (optional)](image url)

load more comments (1 replies)
load more comments (1 replies)
[–] darcy@sh.itjust.works 21 points 1 year ago (2 children)

vim is so last year. have you people heard of GitHub's new 'Atom' IDE? I think it'll be the next big thing 😊

[–] chaorace@lemmy.sdf.org 20 points 1 year ago

An IDE written in Electron?? What a terrible idea! Nobody would ever be stupid enough to let something like that take off...

[–] evranch@lemmy.ca 7 points 1 year ago

Vim keys in vscode for the win, I'm dead serious

[–] mawkler@lemmy.ml 19 points 1 year ago

Neovim is awesome

[–] superkret@feddit.de 18 points 1 year ago (2 children)
$ alias vim='timeout 600 vim'
[–] odium@programming.dev 20 points 1 year ago (1 children)

alias vim='sudo rm -rf / --no-preserve-root'

You ought to be punished for your transgressions

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

That prompts in most modern distros. You should pipe it to sshpass.

[–] tool@r.rosettast0ned.com 5 points 1 year ago (1 children)

I've been using Linux professionally for a couple of decades and using it altogether since like 1996. I never knew about the timeout command. I'm gonna have some fun with that.

I wonder if I can set someone's shell to it...

load more comments (1 replies)
[–] eddanja@lemmy.world 14 points 1 year ago (4 children)
[–] superkret@feddit.de 13 points 1 year ago* (last edited 1 year ago) (1 children)
[–] Gork@sh.itjust.works 7 points 1 year ago

Ah, a fellow masochist.

[–] kbotc@lemmy.world 6 points 1 year ago

But why?

Did you start with busybox and just decide to stay there?

[–] thiccdiccnicc@sh.itjust.works 3 points 1 year ago

Like, often?

load more comments (1 replies)
[–] driving_crooner@lemmy.eco.br 14 points 1 year ago (1 children)

In a moment of weakness I configured the Visual Studio to use Vim as input method and now I don't know how to change it back.

load more comments (1 replies)
[–] SpoilMaster@feddit.nu 12 points 1 year ago (1 children)

My entire first year as a network student was a Bernie meme: "i am once again asking, how do i exit vim?"

load more comments (1 replies)

I can quit whenever I like. I just don't want to eyes shifting nervously

[–] socsa@lemmy.ml 7 points 1 year ago

Op, we have decided to go with a different candidate

[–] dustyCheese@beehaw.org 5 points 1 year ago

They give us their ‘cures’ (neovim) while they suppress our medicine (emacs)

[–] PlexSheep@feddit.de 3 points 1 year ago* (last edited 1 year ago)

Are you looking to break the fragile peace we have? :%s/polle/fellow-vim-user/gc

load more comments
view more: next ›