g0all
asked on
SOLARIS vi arrows -> insert and normal mode
Hi,
Can somebody please provide me a solution to use Solaris vi by using the arrow keys?
I've tried all Google options such as:
~/.exrc:
set t_ku=[control-v][up-arrow]
set t_kd=[control-v][down-arro w]
set t_kr=[control-v][right-arr ow]
set t_kl=[control-v][left-arro w]
And it's not working.
I'd like to use normal arrows into both insert/normal mode.
HUGE Thanks
Can somebody please provide me a solution to use Solaris vi by using the arrow keys?
I've tried all Google options such as:
~/.exrc:
set t_ku=[control-v][up-arrow]
set t_kd=[control-v][down-arro
set t_kr=[control-v][right-arr
set t_kl=[control-v][left-arro
And it's not working.
I'd like to use normal arrows into both insert/normal mode.
HUGE Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thats why I want to find out the current terminal setting first...
ASKER
Partially solved.
I've had ddterm.
In normal mode arrows are working. In insert mode, when pressing arrows letters are inserted.
I've had ddterm.
In normal mode arrows are working. In insert mode, when pressing arrows letters are inserted.
That is how it is supposed to work. When in insert mode do NOT use the arrows. Insert mode must be off to use arrows.
This will allow to use vi commands on the command line:
export TERM=xterm
set -o vi
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
echo $TERM