I found here the following command normal! zvzz

But I don't know what it does.


1 Answer 1


The normal command simulate keyboard input in normal mode. The normal! version ignore the custom mapping that could have been introduced such that its behavior does not depend on special customization or the presence of plugins.

normal! zvzz trigger the following two normal commnands: zv and zz

zv Open the fold to make the cursor line visible.

zz Center the screen on the cursor line.

From the help:

zv      View cursor line: Open just enough folds to make the line in
        which the cursor is located not folded.
z.      Redraw, line [count] at center of window (default
        cursor line).  Put cursor at first non-blank in the

zz      Like "z.", but leave the cursor in the same column.
        Careful: If caps-lock is on, this command becomes
        "ZZ": write buffer and exit!
  • 1
    I think an explanation of :normal is missing.
    – romainl
    Commented Jun 29, 2023 at 5:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.