On 22/03/09 17:32, kaushal wrote:
>
> hi
>
> is there a shortcut command for moving screen/page up or down in vim
> in normal mode similar to f and b in less command
> I know ctrl-f and ctrl -b or ctrl-u and ctrl-d is available, but that
> requires two keystroke.
>
> Thanks and Regards
Well, there are always the <PageUp> and <PageDown> cursor movement keys,
and I know some people would make believe that Vim is meant to be used
without ever hitting any of the keypad (cursor or numeric) keys, and
that anything else is "un-Vim-like" and to be shunned at all costs; but
my take on that subject is that if the keys are there, and if they are
useful, then by all means use them.
See also ":help scroll.txt" about all possible ways to scroll in Vim,
and ":help map.txt" about how to remap multikey operations to single
keys (I recommend using F keys as the {lhs} of your mappings.)
Note that in Vim the active cursor can never be out of view, which means
that if you scroll farther than the distance between the cursor and the
edge of the screen in that direction, the cursor will move. See ":help
mark-motions" about how to remember your place.
Best regards,
Tony.
--
"I haven't lost my mind; I know exactly where I left it."
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---