Professional Documents
Culture Documents
VIM Question
VIM Question
# 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?
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?