this post was submitted on 09 Jun 2025
553 points (97.4% liked)

Programmer Humor

24206 readers
758 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
[–] [email protected] 15 points 6 days ago* (last edited 6 days ago) (1 children)

😳

:w = write; or overwrite if the file already exists.

Please don’t give blanket destructive advice.

[–] [email protected] 3 points 6 days ago (1 children)

This one's fine. They'll then learn the next vim button, u for undo. I believe it's saved between boots of vim? It may be my kickstarted neovim config tho

[–] [email protected] 3 points 6 days ago

I would say not in all installations, no. And honestly, it’s not worth trusting.

And for those who are unfamiliar, and want to set it up: https://blog.openreplay.com/persistent-undo-vim-save-restore-history/