0
0
Linux CLIscripting~5 mins

vim basics (insert, command, save, quit) in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What mode do you enter in Vim to start typing text?
Insert mode. You enter it by pressing i in command mode.
Click to reveal answer
beginner
How do you switch from insert mode back to command mode in Vim?
Press the Esc key to leave insert mode and return to command mode.
Click to reveal answer
beginner
What command saves your changes in Vim without quitting?
Type :w in command mode and press Enter to save the file.
Click to reveal answer
beginner
How do you quit Vim without saving changes?
Type :q! in command mode and press Enter to quit without saving.
Click to reveal answer
beginner
What is the command to save and quit Vim at the same time?
Type :wq or :x in command mode and press Enter.
Click to reveal answer
Which key do you press to enter insert mode in Vim?
AEsc
Bi
C:w
D:q
How do you save changes in Vim without quitting?
A:wq
B:q!
C:w
DEsc
What command quits Vim and discards any changes?
A:q!
B:wq
C:w
Di
Which key do you press to leave insert mode?
Ai
B:q
C:w
DEsc
What command saves and quits Vim in one step?
A:wq
B:q!
Ci
D:w
Explain how to open Vim, insert text, save your work, and quit.
Think about the keys and commands you use step-by-step.
You got /6 concepts.
    Describe the difference between command mode and insert mode in Vim.
    Remember which keys switch modes.
    You got /3 concepts.