Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

PROBLEM DESCRIPTION

...

Numeric keypad does not register in vi



REASON

...

This problem may occur when 'xterm' or 'vt100' is used for terminal.



RESOLUTION

...

To resolve this issue, change the terminal type to 'ansi' , 'linux' or 'vt220.' 'xterm' and 'vt110' does not support the numeric keypad.

To change the terminal type, execute the following command:

Code Block
$export TERM=ansi or setenv TERM ansi



ADDITIONAL INFORMATION

...

The following directions are for when configuring the terminal type to ansi.

In user's home directory, create a file called 'vi' then input the following:

Code Block
#!/bin/sh
TERM=ansi
export TERM
exec /usr/bin/vi $@


Then when executing vi, the script created above will be executed.

Code Block
$chmod 755 $HOME/vi
$alIas vi='$HOME/vi'
(if C shell, $alias vi '$HOME/vi')

...