Using numeric keypad in vi, vim
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:
$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:
#!/bin/sh TERM=ansi export TERM exec /usr/bin/vi $@
Then when executing vi, the script created above will be executed.
$chmod 755 $HOME/vi $alIas vi='$HOME/vi' (if C shell, $alias vi '$HOME/vi')