36

I was looking up at tips on screen shifting and came across the following tips:

zz = shift current line to middle of screen
zt = shift current line to top of screen
zb = shift current line to bottom of screen

My question is what is z? What does it stand for? what other functionality might z have?

muru
  • 24,838
  • 8
  • 82
  • 143
James Franco
  • 1,101
  • 1
  • 9
  • 15
  • 3
    With folding, it can visually represent a ... folded sheet of paper. Otherwise, a letter that has to be used, after all good letters were taken for "important" operations that could use a good mnemonic. – VanLaser Mar 22 '16 at 23:27
  • 7
    My guess is that it stands for Zhift ;) – ypercubeᵀᴹ Mar 23 '16 at 07:10

1 Answers1

37

z doesn't stand for anything. g and z were two letters that went unused as standalone commands (z<CR>, z., z+, z-, and z^ existed) in vi, so they have been repurposed in Vim as a prefix for a variety of commands.

:help z and :help g will show you all the commands that sit behind these prefixes.

jamessan
  • 11,045
  • 2
  • 38
  • 53