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 > Mac OS X > vim key bindings in terminal

vim key bindings in terminal
Thread Tools
Dedicated MacNNer
Join Date: Dec 2003
Location: Madison, WI USA
Status: Offline
Reply With Quote
Jan 13, 2004, 12:01 PM
 
I use vim for development and there is one thng that drives me nuts. When I hit the page up or page down keys my terminal window scrolls, not vim. Is there there a way to bind those keys so they navigate through my vim file, not the terminal? I'd rather use those keys than control+f and control+b.
     
Dedicated MacNNer
Join Date: Jan 2000
Location: Other side of your screen
Status: Offline
Reply With Quote
Jan 14, 2004, 01:34 PM
 
Originally posted by servo:
I use vim for development and there is one thng that drives me nuts. When I hit the page up or page down keys my terminal window scrolls, not vim. Is there there a way to bind those keys so they navigate through my vim file, not the terminal? I'd rather use those keys than control+f and control+b.
You can bind keys in the "Window Settings..." -> "Keyboard" dialog of the terminal app. The downside is that these settings apply to that window (not just vim). I haven't tried to bind the PgUp/Down keys though.
Meh
     
Junior Member
Join Date: Nov 2001
Location: Seattle
Status: Offline
Reply With Quote
Jan 18, 2004, 01:06 AM
 
How did you set up the key binding in vim? I've tried adding

map <PageUp> <C-b>

to my .vimrc file, but this doesn't seem to work, even on other computer systems and terminals. Other key mappings I have work fine.

Anyone had any luck with this? It might be rather nice at work.
     
   
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:36 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