What does vim do?
vim is a powerful keyboard-driven editor with modes: press i to type, Esc to stop typing, then :wq to save and quit or :q! to quit without saving.
vim file
Most useful options
| Option | What it does |
|---|---|
| i | insert mode (type text) |
| Esc | back to normal mode |
| :w | save |
| :q | quit |
| :wq | save and quit |
| :q! | quit without saving |
vim examples
In security work
Learning the basics of vim is worth it: it is installed on almost every server, even minimal ones.
Questions about vim
How do I exit vim?
Press Esc, type :q! and Enter (quit without saving), or :wq to save and quit.