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.