Posts Tagged "vi"

How to exit VI with or without saving

Posted on Jun 18, 2017

Although many alternatives exist, I like using vi for all my command line editing needs. To save changes, I usually use SHIFT + Z + Z, exiting vi under most circumstances. But sometimes, this trick...

Learn More

How to quit vi without saving your changes

Posted on Dec 9, 2014

It just occurred to me that even though I know my way around vi fairly well, I never had to quit it without saving my changes. Usually I just go back in and overwrite my mistakes. Today I did something though...

Learn More