How to do Page-Up on a Mac in Terminal

The laptop has no page-up/down buttons. How can I have page-up/down on the terminal, e.g. when I edit with vi?


On Snow Leopard on MacBook, I use fnup or fndown to page up and down respectively on the terminal. And when inside an editor, such as Vim, I hold the shift key in addition to the mentioned key combinations to page up and down within the editor.


Use controlf (forward) for page down, and controlb (backward) for page down.