Link to home
Start Free TrialLog in
Avatar of g0all
g0allFlag for Saint Pierre and Miquelon

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-arrow]
set t_kr=[control-v][right-arrow]
set t_kl=[control-v][left-arrow]

And it's not working.

I'd like to use normal arrows into both insert/normal mode.

HUGE Thanks
Avatar of Joseph Gan
Joseph Gan
Flag of Australia image

what is the output of this command:
echo $TERM
ASKER CERTIFIED SOLUTION
Avatar of David
David
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thats why I want to find out the current terminal setting first...
Avatar of g0all

ASKER

Partially solved.

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

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial