$
학습 Linux 안내서
ko
XP:0
퀘스트 95Vim-Initiate
+250 XP

Vim Basics: Modes, Saving & Exiting (vim)

이 퀘스트를 위한 인터랙티브 터미널 시작→설치 불필요 • 브라우저에서 바로 실행

개념 및 개요

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.

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.

명령어 구문 참조

Command / SyntaxDescription
vim notes.txtOpen file in Vim editor
iEnter Insert mode to type text
EscReturn to Normal mode
:wqWrite changes and quit Vim

검증 목표

  • ○
    Open notes.txt with "vim notes.txt"
  • ○
    Enter Insert mode and write new line
  • ○
    Save and quit using :wq

퀘스트를 완료할 준비가 되셨나요? 95?