View previous topic :: View next topic |
Author |
Message |
mattsteven Apprentice
Joined: 27 Oct 2003 Posts: 240 Location: Your Planet
|
Posted: Tue Dec 23, 2003 1:18 pm Post subject: Vim direction keys inoperable on ppc keyboard ibook |
|
|
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 |
|
|
cselkirk Apprentice
Joined: 09 Jun 2003 Posts: 199 Location: NL
|
Posted: Fri Dec 26, 2003 2:22 am Post subject: |
|
|
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 |
|
|
mattsteven Apprentice
Joined: 27 Oct 2003 Posts: 240 Location: Your Planet
|
Posted: Sat Dec 27, 2003 2:10 pm Post subject: |
|
|
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 |
|
|
|