Multiple choice technology platforms and products

What command is used to Reposition window in vi ?

  1. w

  2. z

  3. W

  4. Z

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In vi editor, the 'z' command is used to reposition the current line on the screen. It can be used with variants like 'zt' (move current line to top), 'z.' (move current line to center), or 'zb' (move current line to bottom). Commands 'w' and 'W' are for word navigation, while 'Z' is for saving and quitting.