Text and processing
The vim command
Powerful, fast text editor. It has several modes; you learn it with practice.
Copy-ready examples
$ vim /etc/hostnameOpen a fileYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- It starts in normal mode: press i to type and Esc to leave the mode.
FAQ
How do I quit vim?
Type :q and Enter; :q! discards changes and :wq saves and quits.
Are vim and vi the same?
vi is the original and vim its improved version; on many systems vi points to vim.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course