News for hackers. Stuff that matters.
Re:How to Exit Vim by tynorf on Wednesday January 08, 2020 @01:35PM (#21994343)
Unfortunately:

  E183: User defined commands must start with an uppercase letter
Re:How to Exit Vim by jessant on Thursday January 09, 2020 @03:37PM (#22005414)
command W <nop>

cabbrev w <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'W' : 'w')<CR>

cabbrev q <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'W' : 'q')<CR>

cabbrev q! <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'W' : 'q!')<CR>

cabbrev wq <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'W' : 'wq')<CR>