by vijaydev · 16y ago · 0 comments
"zt, zb and zz are commands that I use pretty frequently. They keep the cursor on the current line, but re-position the cursor at the top, bottom or middle of the screen."
Priceless! Was wondering how to do this a couple of days ago. Thanks David Frey.
" Mappings to keep the cursor in the middle of the screen most the time {{{
nmap n nmzz.`z
nmap N Nmzz.`z
nmap * *mzz.`z
nmap # #mzz.`z
nmap g* g*mzz.`z
nmap g# g#mzz.`z
"}}}