shawn bright wrote:

Hey there all,
i really dig the zz function to get me in the middle of the screen.
i was wondering if there were an insert mode ability to do the same thing.
So if i am writing a long function and get to the bottom of the screen
i can move where i am at to the middle of the screen while still in
insert mode?


Others have covered various sorts of maps; however, if you really like having that cursor in the middle of the screen,
I suggest setting the scrolloff option.

ex.   set scrolloff=999

will always keep the current line in the middle of the screen. If you like some wiggle room, try

ex.  set scrolloff=5

Regards,
Chip Campbell

Reply via email to