Text and processing

The vim command

Powerful, fast text editor. It has several modes; you learn it with practice.

Syntax

vim [archivo]Try it in the terminal →

Copy-ready examples

$ vim /etc/hostnameOpen a file

You 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.

Related commands

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.

More Text and processing commands

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