You are on page 1of 1

#=====================================================

# OA-ICT GROUP
# INTERNAL TRAINNING
# These questions are about some basic command in VIM.
#=====================================================

A. MODE
1. When "Normal mode"/"Visual mode"/"Insert mode"/"Replace mode" is used?

B. MOVE AND EDIT COMMANDS


2. Try and explain command "gg" and "G" in "Normal mode".
3. Try and explain command "^" and "$" in "Normal mode".
4. How to go to line number 19?
5. How to delete one character/line in "Normal mode"?
6. How to yank one line in "Normal mode"?
7. How to paste one copy in "Normal mode"?
8. How to use range to delete/yank/paste in "Normal mode"? (Ex: delete 3 lines,
delete lines from 3 to 5)
9. How to replace a character in "Normal mode".
10. How to undo and redo in "Normal mode"?
11. How to move from "Normal mode" to "Insert mode" and vice versa? What is the
difference between "i" and "a" command. What is the difference between "o" and "O"
command.
12. How to move from "Normal mode" to "Visual mode" vice versa? What is the
difference between "v", "V", "CTRL+V"?
13. How to yank/delete/insert in "Visual mode"? What is the difference between yank
and paste using "v", "V", "CTRL+V"?
14. Which command is use to substitute in VIM?
15. Try how to use ":normal" command in "Normal mode".

C. OTHERS COMMANDS
15. How to save file in "Normal mode"?
16. How to open file under the cursor? (Ex: Open "lab_02.txt")
17. Which command is used to search a pattern in user mode? Regular expression.
18. How to search a blank line?
19. How to search pattern under the cursor? (Example: "is")
20. How to search whole word under the cursor? (Example: "How")
21. How to comment all line in a file?
22. How to open another file in current window?
23. How to use registers to yank and paste in VIM.

D. TERMINAL COMMANDS
24. How to open two files using vi?
25. How to compare two files using vi?

You might also like