Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Vim direction keys inoperable on ppc keyboard ibook
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
mattsteven
Apprentice
Apprentice


Joined: 27 Oct 2003
Posts: 240
Location: Your Planet

PostPosted: Tue Dec 23, 2003 1:18 pm    Post subject: Vim direction keys inoperable on ppc keyboard ibook Reply with quote

Greetings,

Searched a bit for this but found no relevant posts.

I've found using my iBook2 that the arrow keys do not work in vim. Not being a keyboard expert, I don't know where to look for the answer.

Anyone have this problem who's found a solution?
Back to top
View user's profile Send private message
cselkirk
Apprentice
Apprentice


Joined: 09 Jun 2003
Posts: 199
Location: NL

PostPosted: Fri Dec 26, 2003 2:22 am    Post subject: Reply with quote

What does the output of :set termcap show?

Should be something like:

t_ku arrow up
t_kd arrow down
t_kr arrow right
t_kl arrow left

It's quite possible the terminal you are using has a non-existent termcap entry and vim doesn't know how to handle the keycodes. Try setting the TERM variable to xterm see if this corrects it ..

Code:
export TERM="xterm" ; vim

_________________
cn=cselkirk,dc=xs4all,dc=nl
Back to top
View user's profile Send private message
mattsteven
Apprentice
Apprentice


Joined: 27 Oct 2003
Posts: 240
Location: Your Planet

PostPosted: Sat Dec 27, 2003 2:10 pm    Post subject: Reply with quote

I see a message flash on the screen as vim starts, something like "termcap entry too long"

The use of the xterm env var seems to do the trick. Looks like TERM was 'screen' before.

Thanks for the tip.
_________________
Matthew Steven
Linux-only desktop since 1998
Graying hair since 2006
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum