Follow me for more linux tips and tricks

838 points · 67 comments · view on lemmy.world

67 Comments

poinck@lemm.ee · 63 pts · 2y (18 replies)

I see at least two problems here:

  1. Don't pull on the cable, pull on the plug.

  2. Use EU power sockets, it is safer, more like :q! when existing vim and unsaved changed you made to the file are lost for sure.

paholg@lemm.ee · 35 pts · 2y (6 replies)

Ah yes, I'll just replace all my power sockets, get rid of all my electronics, and only buy imported European electronics from now on.

It's so obvious, why didn't I think of it before.

Oh yeah, and rewire my whole house to 240 V. Easy peasy.

Steve@startrek.website · 9 pts · 2y (4 replies)

To be fair, switching to 240v is pretty easy, just move the neutral to a hot leg in the fuse box.

bitwaba@lemmy.world · 12 pts · 2y (1 reply)

Wouldn't that hot leg need to be 180 degrees out of phase with the other?

Steve@startrek.website · 17 pts · 2y

Yes but I was’t trying to write a book this morning.

Bgugi@lemmy.world · 1 pts · 2y (1 reply)

I'm no electricityologist, but wouldn't that make half your circuits 240V and the other half deadly 0V?

Steve@startrek.website · 1 pts · 2y

Nope

TotalFat@lemmy.world · 1 pts · 2y

Major side benefit of finally having a decent vacuum cleaner..

phuntis@sopuli.xyz · 5 pts · 2y (6 replies)

use UK power sockets it's ever more safe

hollunder@discuss.tchncs.de · 25 pts · 2y

That's how you brexit vim tho. Takes years to complete, no coming back and bricks everything else in the process.

XEAL@lemm.ee · 7 pts · 2y (2 replies)

Triple comment, my dude

phuntis@sopuli.xyz · 4 pts · 2y (1 reply)

dammit it was refusing to send the message so I kept retrying it's never done that to me before

XEAL@lemm.ee · 3 pts · 2y

It has done it to me before lol

Aceticon@lemmy.world · 1 pts · 2y (1 reply)

The UK plugs, on the other hand, are the only shape of plug known to man that when it's left on the ground the pins always end up turned up, ready and eager to receive any feet not suitably protected by a hard shoe sole.

phuntis@sopuli.xyz · 1 pts · 2y

people say this and yeah it is kinda true but honestly who just leaves plugs on the floor who is this an issue for the plug is in the wall

Steve@startrek.website · 4 pts · 2y

Instructions unclear, electrocuted while replacing outlets.

Potatos_are_not_friends@lemmy.world · 3 pts · 2y

See, that's why I just flip the circuit breakers to ensure a successful exit

phuntis@sopuli.xyz · 1 pts · 2y
[ removed ]
phuntis@sopuli.xyz · 1 pts · 2y
[ removed ]
AusatKeyboardPremi@lemmy.world · 48 pts · 2y (1 reply)

Exiting Vim is for beginners.

Veterans stay in Vim till the end of time. Probably for the same reasons why the meme in post was made.

lugal@lemmy.world · 46 pts · 2y

morethanevil@lemmy.fedifriends.social · 46 pts · 2y (4 replies)

Start a second shell and kill the process 😋

rmuk@feddit.uk · 25 pts · 2y (3 replies)

Rookie. I have a shell script on my phone that SSHs into my computer and reboots.

TheGingerNut@lemmy.blahaj.zone · 15 pts · 2y (1 reply)

Termux gang?

swab148@startrek.website · 9 pts · 2y

Termux gang!

Potatos_are_not_friends@lemmy.world · 5 pts · 2y

You (might be) joking but I did this for my home server and I absolutely love how powerful I feel controlling my entire network from a terminal app on my phone.

My old man energy is showing because I'm so used to looking for a laptop/PC to do this.

stoy@lemmy.zip · 25 pts · 2y (2 replies)

I see they reused the instructions for ed, great to see how intuitive Linux is between different programs

jerrythegenius@lemmy.world · 16 pts · 2y (1 reply)
[ removed ]
stoy@lemmy.zip · 11 pts · 2y

My point exactly, I am just happy Vim follows the standard (:

TheGingerNut@lemmy.blahaj.zone · 24 pts · 2y

Glad ubuntu defaults to nano. One of the few decent choices that distro ever made

daniskarma@lemmy.world · 12 pts · 2y

The laughing comes when you are so used to vim that you begin using :q in other programs and wonder why doesn't it exit.

bali10050@lemmy.world · 11 pts · 2y

For the more advanced, there's a button(the more sophisticated may call it a „switch”) for that(on the wall(the fuse))

PlexSheep@feddit.de · 10 pts · 2y (12 replies)

I really don't get the exit vim meme anymore. It's just two key presses, trivial. When you hit <C-c> it tells you exactly what to do. Anyone stuck in vom either does not read or has no idea how to use a terminal.

Edit: I'm German, I meant vim.

hollunder@discuss.tchncs.de · 31 pts · 2y (4 replies)

Yeah vom is easy. Have you tried exiting vim tho?

Dicska@lemmy.world · 14 pts · 2y

Whenever I have to edit a text file when nauseous, I just vom it.

jaybone@lemmy.world · 5 pts · 2y (2 replies)

I use omacs

hollunder@discuss.tchncs.de · 3 pts · 2y (1 reply)

on i-macs?

jaybone@lemmy.world · 2 pts · 2y

On umix

iAvicenna@lemmy.world · 12 pts · 2y

I mean how hard could it be, you just press some random letters until it exits

Croquette@sh.itjust.works · 11 pts · 2y

Vim is unintuitive. If you are a new linux CLI user and follow some tutorials that tells you to run vim, modify something then save and exit, it can be daunting.

some_guy@lemmy.sdf.org · 8 pts · 2y (1 reply)

^^ The kind of person who doesn't remember what it's like being new at the CLI.

or…

Linux is so easy, n00b. You're just stupid.

PlexSheep@feddit.de · 1 pts · 2y

I hope the first one. But the effect is real, stuff you know already was easy and stuff you don't is hard. I'm feeling it with my migration to proxmox, it's hard.

Dasnap@lemmy.world · 3 pts · 2y

:x simple as. Vim was the first terminal text editor I used so I'm biased.

Windex007@lemmy.world · 2 pts · 2y

ESC : q ENTER (assuming you haven't modified the buffer)?

What's the two key press exit pattern?

Empricorn@feddit.nl · 1 pts · 2y

vom stand for "Vi, only maybe".

WhiskyTangoFoxtrot@lemmy.world · 8 pts · 2y (3 replies)

Doesn't work on laptops.

DestroyMegacorps@lemmy.ml · 9 pts · 2y (1 reply)

then disassemble the laptop and remove the battery connection

Nilz@sopuli.xyz · 6 pts · 2y

Maybe that's why Linux users enjoy old ThinkPads so much, you can just pull out the battery without opening the laptop.

possiblylinux127@lemmy.zip · 1 pts · 2y

Sledge hammer is your only option

Draconic_NEO@lemmy.world · 7 pts · 2y

Just click the X on your terminal window.

possiblylinux127@lemmy.zip · 7 pts · 2y (2 replies)

Don't pull plugs out of the wall by the cord. Grab the base of the plug firmly and pull perpendicular to the wall

AstroLightz@lemmy.world · 6 pts · 2y (1 reply)

So you're saying I shouldn't pull the socket out of the wall to unplug?

possiblylinux127@lemmy.zip · 1 pts · 2y

Don't pull on the cord

Treczoks@lemmy.world · 7 pts · 2y

I simply avoid this issue by not starting vim in the first place.

uis@lemm.ee · 6 pts · 2y (1 reply)

That socket looks shocked

possiblylinux127@lemmy.zip · 1 pts · 2y

It does?

Hobbes_Dent@lemmy.world · 6 pts · 2y

I use arc, btw.

rem26_art@fedia.io · 5 pts · 2y (2 replies)

Better turn off all the breakers in your house. Just to make sure you've really closed it

Tomato666@lemmy.sdf.org · 6 pts · 2y (1 reply)

Burn down the sub station to be sure...

possiblylinux127@lemmy.zip · 2 pts · 2y

Steal a nuclear bomb and wipe out your entire city. That's my strat

thechadwick@lemmy.world · 5 pts · 2y

Why would you exit vim tho? Are you being forced under duress or something?

HAL_9_TRILLION@lemmy.dbzer0.com · 5 pts · 2y (3 replies)

C'mon guys. Escape, colon q bang. It practically exits itself.

Count042@lemmy.ml · 1 pts · 2y (1 reply)

Or 'ZZ'

atx_aquarian@lemmy.world · 2 pts · 2y

Well, careful there, ZZ is like :wq; ZQ is like :q!.

Potatos_are_not_friends@lemmy.world · 1 pts · 2y

Complex wizardry on a keyboard vs yank wire?!

We know the winner

garzaza77@lemmy.world · 3 pts · 2y

it's just too many keys to press at once i cant do it

some_guy@lemmy.sdf.org · 3 pts · 2y

First boisterous laugh of the day. Thank you!

GravelPieceOfSword@lemmy.ca · 3 pts · 2y

See how the socket looks like a V?

That's how you remember it's meant to be used to exit vi.

KISSmyOS@feddit.de · 2 pts · 2y

Prevention is key:
alias vim='emacs'

LeandroCunha@lemmy.world · 2 pts · 2y

The funny thing is that at first everyone has difficulty with VIM. 🤣