Misión 95Vim-Initiate
+250 XP
Vim Basics: Modes, Saving & Exiting (vim)
Iniciar terminal interactiva para esta misión→Sin instalación requerida • Se ejecuta en el navegador
Concepto y descripción general
Vim is one of the most powerful and ubiquitous terminal text editors in Linux. Unlike traditional graphical editors, Vim is modal:
- Normal Mode: The default mode used for navigation, deleting, and issuing commands.
- Insert Mode: The mode used for typing text. Press i from Normal Mode to start typing.
- Return to Normal Mode: Press Esc at any time to leave Insert Mode.
- Command-Line Mode: From Normal Mode, press : to type commands at the bottom prompt:
- :w writes (saves) the file.
- :q quits the editor.
- :wq (or :x) saves and exits in one step.
- :q! quits immediately, discarding all unsaved changes.
Instrucciones de la misión
Open
notes.txt in Vim by running vim notes.txt. Enter Insert mode by pressing i, add the line System ready for deployment, return to Normal mode by entering Esc (or pressing the Escape key), and save and quit the editor using :wq.Referencia de sintaxis de comandos
| Command / Syntax | Description |
|---|---|
vim notes.txt | Open file in Vim editor |
i | Enter Insert mode to type text |
Esc | Return to Normal mode |
:wq | Write changes and quit Vim |
Objetivos de verificación
- ○Open notes.txt with "vim notes.txt"
- ○Enter Insert mode and write new line
- ○Save and quit using :wq