Macworld Forums

Macworld Forums: No "page up" and "page down" in vi? - Macworld Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

No "page up" and "page down" in vi?

#1 User is offline   Scoob 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 11
  • Joined: 26-March 03

Posted 09 July 2003 - 12:39 PM

When using vi to edit the httpd.conf file for Apache, I've noticed that the "page up" and "page down" keys don't allow me to quickly scroll through the file. "page up" and "page down" control the screen buffer and allow me to go back up and see previous terminal commands and output.
Because of this, it I have to hold down the "down arrow" key and scrow down line by line through the enormous config file... Which is a huge pain when I need to edit a line that happens to be at the end of the file.
Is there any way around this... Can vi be setup to "page up" and "page down" quickly on OS X? I'm sort of wondering if there are other shortcut keys for this besides the actual "page up" and "page down" keys.
0

#2 User is offline   d00d 

  • Advanced Member
  • Group: Macworld Insiders
  • Posts: 12,596
  • Joined: 24-April 01

Posted 09 July 2003 - 12:53 PM

Try an alternate terminal application, such as GLTerm or iTerm. I'm partial to the latter. It's free and has tabs. It's what I use. I think it has the proper behavior, but I'm not entirely sure because I'm not in front of my computer. You could also try xterm while using an X11 window manager.
0

#3 User is offline   Scoob 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 11
  • Joined: 26-March 03

Posted 09 July 2003 - 01:03 PM

Perfect!!... Thanks, d00d!
I downloaded iTerm and it works like a charm. I wasn't aware that there were different terminals available for OS X! :-)
0

#4 User is offline   thombo 

  • Member
  • PipPip
  • Group: Members
  • Posts: 52
  • Joined: 21-November 01

Posted 09 July 2003 - 06:14 PM

Jus so you know, in VI you can page up and down with CTRLF and CTRLB, in case you dont have a fancy app some time.
thombo
0

#5 User is offline   Scoob 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 11
  • Joined: 26-March 03

Posted 09 July 2003 - 06:27 PM

Fantastic!... Thanks for the info, Thombo. These forums are great. :-)
0

#6 User is online   dcipjr 

  • Veteran
  • PipPipPip
  • Group: Members
  • Posts: 1,198
  • Joined: 09-January 01

Posted 09 July 2003 - 06:45 PM

I was just reading recently that in Panther, page up and page down will work with applications in the Terminal (like pico and vi) just like they do in other OS X applications.
So, if you upgrade, you won't need any third-party software to accomplish this feat--it'll be built into OS X's Terminal.
0

#7 User is offline   d00d 

  • Advanced Member
  • Group: Macworld Insiders
  • Posts: 12,596
  • Joined: 24-April 01

Posted 09 July 2003 - 07:13 PM

But tabs still wont't. /forums/ubbthreads/images/graemlins/wink.gif
0

#8 User is offline   Scoob 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 11
  • Joined: 26-March 03

Posted 09 July 2003 - 07:51 PM

Yeah, I'm really liking the tabs feature in iTerm.
0

#9 User is offline   MacCheetah3 

  • Power User
  • PipPipPipPip
  • Group: Members
  • Posts: 6,688
  • Joined: 02-April 01

Posted 09 July 2003 - 08:27 PM

Hi
In reply to:

But tabs still wont't.


But it COULD be. It might be time to supply Apple with some more feedback /forums/ubbthreads/images/graemlins/wink.gif
/forums/ubbthreads/images/graemlins/grin.gif
MacCheetah3
"When did you ever get so fat?"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users