this post was submitted on 07 May 2025
1136 points (96.9% liked)

Programmer Humor

23136 readers
1156 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] vordalack@lemm.ee 18 points 2 days ago (4 children)

Can't exit Vim

Ah yes, the legendary filter

[–] Anomalocaris@lemm.ee 3 points 1 day ago

the only reason people use vim is because they are stuck in there

[–] state_electrician@discuss.tchncs.de 5 points 1 day ago (1 children)

I first tried vi in the early 90s, before I had easy access to online resources. I had to open a new shell and kill the vi process to exit it. Next time I dialed into my usual BBS I asked how to exit that thing. But since then I've liked it, because vi has been on every system I ever ssh'ed into.

[–] barsoap@lemm.ee 2 points 1 day ago

You quit it just like you quit ed or ex, just that you have to enter the prompt (:) yourself as vi is not by default in prompt mode. And you should know ed, ed is the standard editor.

I use Helix btw.

[–] ZILtoid1991@lemmy.world 7 points 2 days ago (1 children)

I can exit Vim, it just feels like trying to rip out the dashboard and the interiors from a family car because race cars also lack them. Kate is a good speedy alternative to VSCode, not to mention it also does not have Microsoft's greedy hands on it.

[–] Hexarei@programming.dev 3 points 1 day ago (1 children)

I don't get your analogy, but (neo)vim is a full featured IDE if you configure it to be one

[–] toddestan@lemm.ee 1 points 1 day ago (1 children)

Out of the box, Vim's default configuration is very basic as it's trying to emulate vi as close as possible. It like if you want things like headlights or a heater or a tachometer in your family car, you got to create a vimrc and turn those features on. That was my experience when I first started using Vim - I spent a lot of time messing around creating a vimrc until I got things the way I wanted.

One of the big changes with Neovim is their default settings are a lot more like what you would expect in a modern text editor.

[–] Hexarei@programming.dev 1 points 1 day ago

Yeah that's a fair way to look at it

[–] Valmond@lemmy.world 3 points 2 days ago (1 children)
[–] UnRelatedBurner@sh.itjust.works 3 points 1 day ago (1 children)

it says I don't have permission

[–] Valmond@lemmy.world 3 points 1 day ago (1 children)
[–] UnRelatedBurner@sh.itjust.works 1 points 1 day ago (2 children)

I wanted to follow up with the other error, where you didn't open a file, so it doesn't know where to write, but :q! always works :/

Can I somehow not discard my changes tho? I always open a 2nd terminal in root only for vim when editing system files so I don't have to re-do the whole config but this time in sudo.

[–] frezik@midwest.social 1 points 22 hours ago

:wq will save the current buffer and quit.

[–] Valmond@lemmy.world 3 points 1 day ago

Cumbersome: save to some temporary file I guess.