vim make the line go top code example

Example: vim make the line go top

z<CR> or zt puts current line to top of screen (<CR> == Enter)

z. or zz puts current line to center of screen

z- or zb puts current line to bottom of screen




# Misc:
(z<CR>, z., and z- puts the cursor in the first non blank column. zt, zz, and zb leaves the cursor in the current column)

More info about scrolling at http://vimdoc.sourceforge.net/htmldoc/scroll.html or
in vim type :help scroll-cursor

from mtk, chaptuck

Tags:

Misc Example