this post was submitted on 08 Apr 2024
4 points (100.0% liked)

Programmer Humor

19623 readers
1 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
 
top 30 comments
sorted by: hot top controversial new old
[–] PiratePanPan@lemmy.dbzer0.com 2 points 7 months ago* (last edited 7 months ago)

> my wife

> vim user

fake

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

I'm sorry, you need to :s/replace/her/ as soon as possible.

[–] fiddlestix@lemmy.world 1 points 7 months ago (1 children)
[–] Thrashy@lemmy.world 1 points 7 months ago* (last edited 7 months ago)

Look, some of us old farts started on Linux back before nano was included by default, and your options for text editing on the command line were either:

  1. vi/vim, a perfectly competent text editor with arcane and unintuitive key combos for commands
  2. emacs, a ludicrously overcomplicated kitchen-sink program that had reasonable text-editing functionality wedged in between the universal woodchuck remote control and the birdcall translation system

Given those options, most of us chose to learn how to key-chord our way around vim, and old habits die hard.

[–] Foofighter@discuss.tchncs.de 1 points 7 months ago
[–] pineapplelover@lemm.ee 0 points 7 months ago (3 children)

I refuse to see how vim and emacs is worth learning. I only use it because that's the only option when editing server files. Beyond this, I couldn't imagine coding in these environments from scratch.

[–] kuberoot@discuss.tchncs.de 1 points 7 months ago (1 children)

By the way, for editing server files consider nano. It's also widely available, has simpler shortcuts and displays them on the screen. It's obviously not powerful like vim, but a good match when you just need to edit a config file.

[–] 1rre@discuss.tchncs.de -1 points 7 months ago (1 children)

Nano is just as fiddly as vim and way less powerful when you actually figure out what you're doing though?

Ie a completely redundant piece of software that has no place being pre-installed anywhere

[–] geophysicist@discuss.tchncs.de 1 points 7 months ago

how is it just as fiddly as vim? it's the only one that's even half intuitive

[–] ICastFist@programming.dev 1 points 7 months ago

I only use it because that’s the only option when editing server files.

suggestion 1: use nano. Unlike vi(m) and emacs, it's meant for humans, all the command shortcuts you can execute are listed at the bottom.

suggestion 2: browse the servers in question via your file explorer (sftp://user@server or just sftp://server) of choice or WinSCP if you're on windows, open whatever file with your local graphical text editor of choice.

[–] stoy@lemmy.zip 0 points 7 months ago (1 children)

Nano is perfectly fine for me.

But I know the basics of vim if I need to use it.

[–] Zo0@feddit.de 0 points 7 months ago (1 children)

I have a cheatsheet of all the necessary vim shortcuts!

:q!

[–] Iapar@feddit.de 0 points 7 months ago

:q looks like a person which jaw hit the desk. Which adequately described me when I found out how to exit vim.

[–] Random_German_Name@feddit.de 0 points 7 months ago
[–] penquin@lemm.ee 0 points 7 months ago (1 children)

Stop showing off VIM to your wife would be a good start. I mean, I would do the same if she tried to show off her make tutorials to me.

[–] Andromxda@lemmy.dbzer0.com 1 points 7 months ago (1 children)
[–] penquin@lemm.ee 1 points 7 months ago
[–] FiskFisk33@startrek.website 0 points 7 months ago

make several limes with the number 0
visual mode mark them and do g ctrl a

gets 'em every time!

[–] chris@lem.cochrun.xyz 0 points 7 months ago (1 children)

Emacs can do that obviously. And everything else.

[–] joshcodes@programming.dev 2 points 7 months ago

Relevant xkcd

[–] tiredofsametab@kbin.run 0 points 7 months ago (2 children)

As someone who's been a software developer for over a decade and in IT even longer, I still don't use vi/vim for anything other than when crontabs have it set as the editor.

[–] Hexarei@programming.dev 1 points 7 months ago (1 children)

Honestly if you don't use vim motions in your ide of choice, you're missing out big time. Being able to do things like "Delete everything inside these parentheses". di( or "wrap this line and the two lines below r in a pair of {}" ys2j{ , or "swap this parameter with the next one" cxia]a. with a single shortcut is game changing.

Even just being able to repeat an action a number of times is ridiculously useful. I use relative line numbers, so I can see how many lines away a target is and just go "I need to move down 17 lines" and hit 17j.

Absolutely insane how much quicker it is too do stuff with vim motions than ctrl-shift-arrows and the like

[–] oce@jlai.lu 0 points 7 months ago (1 children)

Absolutely insane how much quicker it is too do stuff with vim motions than ctrl-shift-arrows and the like

Those tasks are a very small part of work time, so most people don't feel the need to optimize it.

[–] Hexarei@programming.dev 1 points 7 months ago

As a software dev, they're significant parts of what I do

[–] SpaceNoodle@lemmy.world 0 points 7 months ago (1 children)
[–] PureTryOut@lemmy.kde.social 0 points 7 months ago (1 children)

export EDITOR=nano.

But (neo)vim is amazing so there is no need to do that.

[–] SpaceNoodle@lemmy.world 1 points 7 months ago

I transfer all my files over to a Windows machine and edit them in Notepad

[–] XTL@sopuli.xyz 0 points 7 months ago (1 children)

Realising that your partner doesn't care about you after 10+ years can indeed be hard.

[–] ArmoredThirteen@lemmy.ml 0 points 7 months ago (1 children)

Can confirm, am getting divorced after 12 years

[–] Iapar@feddit.de 0 points 7 months ago

"Muuhuum, vim is wrecking havoc on relationships again!"