I saw this post from Joel Spolsky lately, noting that Stack Overflow has been helping 1 million developers exit VIM. It’s a funny post, but one that has some truth in it. I’ve gotten into VIM, almost always from git, but sometimes in Linux, and I often Google the exit.
Fortunately I’ve learned a few things and usually remember :wq.
Other do too, since I actually didn’t need to Google that during a presentation where I committed without the –m, and got into VIM. I actually remembered :wq, posted just “:wq” on Twitter, and a few people laughed, since it’s maybe the one VIM command quite a few people need to remember.
Hopefully just typing this post will tatoo that sequence into my head so I never end up reading the command list on Stack Overflow again.
If you want to learn more about VIM, here’s a cheat sheet.
Can you update this post with a link to the command list on Stack Overflow? Maybe this one: https://stackoverflow.com/questions/1276403/simple-vim-commands-you-wish-youd-known-earlier
LikeLike
I think you just did, but I’m not trying to provide a list of all commands. If I were, I’d use a different page that’s easier to read than scrolling through a list of Q&A.
Actually, I’ll update with a different one.
LikeLike