Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
aftbit
· 1y ago · 0 comments
Except then when I type ":Wq" by mistake, I get an error instead of vim doing what I expect. This happens about 20 times a day for me. One line of config maintenance is well worth the end of this daily annoyance.
Comments
[–]
Teckla
1y ago
ZZ will save the file (if there are changes) and quit. Try it as an alternative to :wq.
[–]
aftbit
OP
1y ago
I've rebound mine too. ZZ saves without quitting, while Q quits.