Which of the following key-combinations should you use to accomplish the task?

You work as the Network Technician for Tech Perfect Inc. The company has a Linux-based
network.
You are currently working on vim. You opened a file in four windows in a single vim screen. You
want to jump from one window to another. Which of the following key-combinations should you
use to accomplish the task?

You work as the Network Technician for Tech Perfect Inc. The company has a Linux-based
network.
You are currently working on vim. You opened a file in four windows in a single vim screen. You
want to jump from one window to another. Which of the following key-combinations should you
use to accomplish the task?

A.
Ctrl-w, v

B.
Ctrl-w, s

C.
Ctrl-w with an arrow key

D.
Ctrl-w, q

Explanation:

Ctrl-w key-combination with an arrow key is used to jump from one window to another. This will
move you to the next window in whichever direction the arrow would normally move your cursor.
Instead of the arrow keys, you can also use
vi’s traditional h, j, k and l keys for the same effect.
Answer options B and A are incorrect. Ctrl-w, s and Ctrl-w, v key-combinations are used to view a
file in two windows in a single vim screen.
Ctrl-w, s splits the screen horizontally and Ctrl-w, v splits the screen vertically.
Answer option D is incorrect. Ctrl-w, q is used to quit from your current window.



Leave a Reply 0

Your email address will not be published. Required fields are marked *