Tuesday, June 15, 2010

Re: Vim scroll option

Benny Bürger wrote:
>
> Hi,
>
> 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.
> I solved the problem by rebinding of the <C-D> and <C-U> keys
>
> nmap <C-D> 5j
> nmap <C-d> 5k
>
> This is working fine, but I asked myself if there is a better method with
> which I can set the scroll variable to a permanent value?
>
> Tia,
> Benny Bürger
>

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.

waiting for an expert to reply!
--
View this message in context: http://old.nabble.com/Vim-scroll-option-tp28897079p28897749.html
Sent from the Vim - General mailing list archive at Nabble.com.

--
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: