you can close vim?
Programmer Humor
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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
"this is my life now"
cat /dev/zero > "/proc/$(pidof vim)/mem"
is my favorite dumb way. Clear its memory, wait for the segfault.
...you can write to program memory? Idk how exactly but that feels like a security risk.
It's your process, why shouldn't you be able to write to it? Vi is certainly doing it...
You do need to be root to do it to arbitrary processes.
dumb way.
Get fancy, add progress bar: pv < /dev/zero > "/proc/$(pidof vim)/mem"
Amateur. Just unplug the power cable.
ctrl-z
kill %1
holy crap,
that's exactly what i wanted the last command to do.
i just didn't know you can target jobs,
and settled with quitting the shell instead
yeah it's my favorite way to exit Vim. I post it every time I get a chance lol https://gekinzuku.com/comment/202790
M-! pkill -9 vim
Alt
+PrtScn
o
One panel below: shut down the computer
try...
:x
it will save your changes and exit vim If there are no changes to the then it just exits vim.
til shift-z shift-z. am I stupid
- Ctrl + T + alt
- sudo reboot
Does unplugging the machine not work?