vim go to line start code example
Example 1: vim jump to beginning of line
For moving in vim use ^ to jump to start of line and $ to jump to end.
For jumping and appending to the end use "Shft+A" and "Shft+I" to start.
Example 2: 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
(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