Hi, You might want to add this to your .vimrc :
map <Leader>zz :let &scrolloff=999-&scrolloff<CR> Briefly : zz : your working line to the center of the window <Leader>zz : your working line to the center of the window, always Leader>zz (again) : go back to usual scrolling apol Le 19 mars 09 à 21:26, David P. Henderson a écrit : > > Might have been zz or z. see 'help scrolling' > > On 19 Mar 2009, at 12:40, Jeremy Conlin wrote: > >> Once I accidently did a magical keystroke that kept the line I was >> working on in the center of the window. Unfortunately I don't know >> what keystroke I used and can't reproduce the effect. Does someone >> on this list know what to do? > > -- > "Premature optimization is the root of all evil." -- C. A. R. "Tony" > Hoare > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_mac" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
