Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
reayn
· 4y ago · 0 comments
Pressing ZQ in insert mode also provides the same effect!
Comments
[–]
CGamesPlay
4y ago
Actually, it doesn’t. ZQ is the same as :q! which quits without saving with a 0 exit code. So all of your git branches get deleted in this example, since you left the file as it was. You definitely want :cq here.
[–]
toxik
4y ago
In normal mode, not insert mode. ZQ in insert mode inserts ZQ.
[–]
reayn
OP
4y ago
Oh my bad, i had a bit of a stroke writing my comment lol.