this post was submitted on 25 Oct 2023
2226 points (99.1% liked)
Programmer Humor
31970 readers
1567 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There's a few different ways to write that command in vim, does it accept all of them?
I'm honestly not super familiar with vim. I tried :q! and it accepted it, what are some other ways?
:wq will save and then exit, while :x will save only if the file has been modified and then exit, and then there's ZZ that does the same as :x, plus there are probably others:-)
This guy vims