History Report a problem
Article Edit this page Discussion

Stateful zz

From Vim Tips Wiki

(Redirected from VimTip281)
Jump to: navigation, search

Tip 281 Previous TipNext Tip

Created: July 11, 2002 Complexity: basic Author: Bob van Manen Minimum version: 5.7 Karma: 16/7 Imported from: Tip#281


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'.

[edit] Comments


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Pushing Daisies
Legend of Zelda Wiki
Terminator Wiki
Everquest II Wiki
Astronomy Wiki
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions


Vote for featured Wikia!

Send this article to a friend
"Stateful zz"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation