How To Quit VI Editor?

Press `Esc`

Type `:q`

Press `Enter`

If there are unsaved changes, type `:q!`

Press `Enter`

To save and quit, type `:wq`

Press `Enter`

To save and quit, you can also type `ZZ` in normal mode

Suggested for You

Trending Today