Hpux and vim

On Linux when i use the keyboard end button(located
after canc) vim go to the end of line.
On Solaris and Hpux print F,why?
Ho to make Vim on solaris and hpux like
Vim on Linux?
Thanks

p.s=i already try set nocomp,but doesn't work

Are you in terminal mode?
Then the following sets it to vt100 standard (used by most modern terminals)

stty sane
stty erase "^h" intr "^c" kill "^u" susp "^z" eof "^d"

Type the characters as shown e.g. ^ then h.
You might need to set further items; check current items/values with

stty -a

Try with stty sane and the next line..
and doesn't work.
Stty -a give me

speed 38400 baud; line = 0; 
rows = 34; columns = 134
min = 4; time = 0; 
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 <undef>; swtch = ^@
stop = ^S; start = ^Q; susp = ^Z; dsusp = ^Y
werase = ^W; lnext = ^V
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts 
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc 
ixon ixany -ixoff imaxbel -rtsxoff -ctsxon -ienqak 
isig icanon iexten -xcase echo -echoe echok -echonl -noflsh 
echoctl -echoprt echoke -flusho -pendin 
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop