exit vi in unix code example
Example: how to exit vi in linux
(without saving changes)
if in insert or append mode press Esc.
else type ":q!" and press Enter
(without saving changes)
if in insert or append mode press Esc.
else type ":q!" and press Enter