On Sat, Nov 12, 2016 at 4:22 PM lylez <[email protected]> wrote:
> On Tuesday, November 8, 2016 at 9:51:05 AM UTC-8, andalou wrote: > > I'm using vim 80.069 on Windows with defaults.vim enabled. > > > > When pressing z<CR>, the cursor line is supposed to get to top of > > window, but is placed 5 lines below the top. > > > > Many thanks in advance, > > > > -- > > Cesar > > Folks, this is a classic example of a bug masquerading as a feature. Not > only does the z-<CR> functionality not work, but I can't even move the > cursor above the fifth line being displayed by pressing the k key, unless > the file is scrolled all the way to the top. > > This is like if a car company sold a car that, every few hundred miles, > suddenly lurched hard left, causing it to collide at high speed with > oncoming traffic. When alerted to this, the car company responds by saying, > "Oh yeah, that's the default behavior, but not to worry, all you have to do > is press the stereo volume button, AC button, and radio station tuner > buttons, all at the same time, and then turn the station to 99.0 FM, and > the problem will be gone". > > It wasn't like this in Vim 7.4, but it is in Vim 8. Please fix. > Lyle, Did you miss the posts earlier about the 'scrolloff' option? :help scrolloff explains this option. Do you have a custom .vimrc file? :help defaults.vim (mentioned at :help scrolloff) says that if you do not have a user .vimrc, defaults.vim will be sourced and it will set the scrolloff option to 5 which explains what you are seeing. This is not a bug. Cheers, Ethan Alan > > Regards > > Lyle > > -- > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
