Tip 281 Printable Monobook Previous Next
created July 11, 2002 · complexity basic · author Bob van Manen · version 5.7
Do you find yourself hitting 'zz' all the time in order to see some context of what you're currently working on? If so, then this tip might be for you. If you add the following line in your vimrc, you can toggle zz mode by pressing <Leader>zz.
" maintain a constant zz state, second call will toggle it back off map <Leader>zz :let &scrolloff=999-&scrolloff<CR>
See :help 'scrolloff'.