Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

or ZZ to save and exit
 help



28 years of vi and TIL about ZZ.

Thanks friend! ^_^


ZZ is the first vi command I learned. After typing vi and only seeing a column of ~s, I asked how do I get out of this thing. Someone answered - ZZ.

Did they say "zz" or specify [capital] "ZZ"?

They probably said Shift - ZZ

I just learnt it the other day, as well. Granted, it was from chapter 1 of "Learning the vi and vim Text Editors" but shhh

Repeat ZZ to save & exit if there are more files to edit

ZQ - discard & exit




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: