On 03/03/09 09:36, Maxim Kim wrote:
> On 3 мар, 11:09, Wu Bingzheng<[email protected]>  wrote:
>> Hi men,
>>
>>   nmap<Space>  <C-B>
>>
>> it doesn't work.
> It works for me.
> Note:<C-B>  doesn't move you cursor to the very top of buffer. If your
> cursor is on 10th line<C-B>  has no visible effect.
>
> I use the follwing bindings instead:
> nnoremap<Space>  <C-D><C-D>
> nnoremap<S-Space>  <C-U><C-U>
> vnoremap<Space>  <C-D><C-D>
> vnoremap<S-Space>  <C-U><C-U>

Here, Ctrl-B (directly or by mapping <Space> to it) moves the cursor to 
the ('scrolloff' + 1)th line. If I set 'scrolloff' to a high value 
(9999) it still scrolls by a page. See also ":help 'window'".

Besst regards,
Tony.
-- 
    [The rest of the ARMY stand around looking at a loss.]
INSPECTOR END OF FILM: (picks up megaphone) All right!  Clear off!  Go on!
                  "Monty Python and the Holy Grail" PYTHON (MONTY) 
PICTURES LTD

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to