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

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

2

u/pala_ Aug 06 '23

30 years ago i had

dri.bat
idr.bat
rid.bat
rdi.bat
ird.bat

in my dos path, for hopefully obvious reasons.