>> I don't like extremly fast scrolling, so I want to reset the scroll
>> variable
>> to a lower value (Important when using<C-D> or<C-U>
>> Unfortunately it is reseted each time a window is resized, this is quite
>> annoying.
>
> it should have been the 'scroll' option, but i tried now to set i in the
> .vimrc file or from the command line like the following: 'let&scroll=5' or
> 'set scroll=5', but it defaults back to half the screen and when i echo the
> &scroll it outputs 1/2 of the screen lines of the current window.
As a side-note, you can set 'scroll' by giving a count to ^U or
^D such as
5^D
will scroll down by 5 lines *and* also set 'scroll' to 5 (a
peculiar behavior discussed in a thread[1] a couple months ago)
This seems to be a bug -- either in the documentation, or in the
implementation. I scavenged the help for anything about 'scroll'
being reset on a resize, but found nothing. I can see why it
would consider doing it, as resizing a window means that a
default value for 'scroll' (one-half the window) would have to
adjust to the new "half-a-window". But if it was set manually,
it would seem inappropriate to override the user's specified
value. At a minimum, this should be documented in the help for
'scroll' or in windows.txt -- however it would also be nice if it
checked to see if it had been manually set vs. automatically set,
and maintain that value.
-tim
[1]
http://groups.google.com/group/vim_use/browse_thread/thread/d2d2418b03c38cb9
--
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
No comments:
Post a Comment