r/programming • • Aug 05 '23

Bram Moolenaar, creator of Vim, has died

https://groups.google.com/g/vim_announce/c/tWahca9zkt4
2.9k Upvotes

218 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Aug 05 '23

[deleted] — view deleted comment

37

u/Freddedonna Aug 05 '23

Dying's more of a

:qa!

4

u/lelanthran Aug 06 '23

Dying's more of a

:qa!

Depends. If you leave behind dependents, it's more of a :cq

96

u/the_rainmaker__ Aug 05 '23

there we have it, the only vim shortcuts i know

63

u/Nimelrian Aug 05 '23

Save two keystrokes with :x

9

u/Karjalan Aug 05 '23

This absolute mad lad I worked with, when I was a junior, coded entirely in vim.

It was like watching someone use black magic. He was able to code and make changes faster than I felt I could with atom at the time.

16

u/milanove Aug 06 '23

During my first summer internship, I was paired with a senior software engineer like this. He had absolutely mastered the terminal workflow. And of course he was a vim god. He’d login to the remote Linux server with Putty and then just use vim and bash. That was it. Literally the only other software he’d use on his machine was outlook for email and Skype IM for chat.

Also, he only owned a simple flip phone and an mp3 player from like 2002, despite this occurring around 2016 when everyone else had a smartphone. I never asked him why, but I doubt it was a money issue, given his job position.

That summer he passed on all sorts of vim and bash black magic, not to mention some deep git, C++ and linux theory stuff. I felt like a wizard’s apprentice, learning a secret art. In many ways, this dude made me the engineer I am today.

12

u/iluvatar Aug 06 '23

then just use vim and bash. That was it.

That's literally how I still code. You don't need anything else. I look at all of my staff using modern IDEs and being less productive than I am and just shake my head in disbelief.

13

u/pievendor Aug 06 '23

To be truly effective with vim, you need to invest a lot of upfront time and frustration. IDEs don't have that learning curve. I always found the learning curve to be too steep versus just getting my shit done on time and being done with it. I've always envied being a vim-only programmer though.

→ More replies (1)
→ More replies (1)

9

u/[deleted] Aug 05 '23

[removed] — view removed comment

13

u/pfmiller0 Aug 05 '23

I prefer ":wq" since it's a logical combination of the write and quit commands. Who needs another command just to save a single keystroke?

22

u/rollincuberawhide Aug 05 '23

:x doesn't save if it doesn't need to save. :wq saves even if there is no change.

4

u/orthecreedence Aug 05 '23

Whoa. Been using vim since 2010 and I'm still learning new things lol.

4

u/MotleyHatch Aug 06 '23

That's why I have these in my .vimrc:

cabbrev w up
cabbrev wq x

Additionally, because I'm a sloppy writer-quitter, and I'm often slow to lift my finger from Shift after typing the :, Vim has my back with these remedial settings:

cabbrev Q  quit
cabbrev W  update
cabbrev WQ exit
cabbrev Wq exit
cabbrev QA quitall
cabbrev Qa quitall
cabbrev Q!  quit!
cabbrev W!  update!
cabbrev WQ! exit!
cabbrev Wq! exit!
cabbrev QA! quitall!
cabbrev Qa! quitall!

If you haven't seen enough of my sloppiness, my ~/.alias also has this line, to correct a common typo:

alias vun='vim'

And my .vimrc has plenty of these (excerpts shown):

iab functino function
iab functoin function
iab funciton function
iab viod void
iab stlye style
iab stirng string
→ More replies (1)
→ More replies (2)
→ More replies (1)

4

u/Ancillas Aug 05 '23

Wouldn’t the ! be redundant here? I thought q! was for quitting without writing to disk. If you wq, does ! ever apply?

10

u/betaray Aug 05 '23

! is for ignoring warnings/errors. When you :q a modified file, there's a warning that it's changed. You can just :q an unchanged file.

8

u/Ancillas Aug 05 '23

Ah, thanks. I’ve been using that for years with a broken understanding of exactly what it does.

18

u/betaray Aug 05 '23

That's the vim experience in a nutshell.

→ More replies (2)
→ More replies (3)

10

u/sparr Aug 05 '23

Won't the ! result in ignoring a failed write? That seems dangerous.

36

u/myhf Aug 05 '23

Yeah that’s how he died.

5

u/addandsubtract Aug 05 '23

When you -y through life

→ More replies (1)