Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > PageUp and PageDown in vim?

PageUp and PageDown in vim?
Thread Tools
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
Jun 13, 2004, 12:18 AM
 
Hi,
I use VIM in the terminal and I can't get the pageup and pagedown keys to page up and down IN vim. They just page up my scrollback buffer in the actual terminal. Does anybody know how to fix this?

Thanks!

gabe
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jun 13, 2004, 08:30 AM
 
Originally posted by Zimwy:
Hi,
I use VIM in the terminal and I can't get the pageup and pagedown keys to page up and down IN vim. They just page up my scrollback buffer in the actual terminal. Does anybody know how to fix this?

In vim (or vi), page down is control-F and page up is control-B
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Zimwy  (op)
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
Jun 13, 2004, 12:10 PM
 
Thanks, but I was meaning more of using the page up and down KEYS. Does anyone know how to make VIM use them instead of the terminal it's running inside of?

Thanks,
gabe
     
Forum Regular
Join Date: Feb 2003
Location: Sundsvall, Sweden
Status: Offline
Reply With Quote
Jun 13, 2004, 01:15 PM
 
Originally posted by Zimwy:
Thanks, but I was meaning more of using the page up and down KEYS. Does anyone know how to make VIM use them instead of the terminal it's running inside of?

Thanks,
gabe
shift + page down
shift + page up
     
Registered User
Join Date: Oct 2003
Status: Offline
Reply With Quote
Jun 13, 2004, 11:51 PM
 
The pageup pagedown keys work with gvim.

To install gvim, the easiest way is probably to install fink, then
sudo apt-get install vim

... and while I'm posting: Can anyone tell me how to get gvim to remember my font setting?
     
Zimwy  (op)
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
Jun 14, 2004, 07:19 AM
 
GVIM?! That's like....blasephemy. It's all about normal vim.


gabe
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:35 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2