PDA

View Full Version : vi editor



bob.h
09-13-2007, 03:04 PM
My vi editor does not recognize function keys, <F1>...<F10>. Also vi give me screwy characters on the screen when I hit cursor positioning keys while in insert mode.

Does anyone have any ideas how to fix this?

Thanks - Bob

r2b2
09-13-2007, 04:34 PM
What software you using?

bob.h
09-13-2007, 04:39 PM
What software you using?

I am using vi in putty, for SSH. I also use putty successfully on another server.

Thanks - Bob

bob.h
09-13-2007, 06:16 PM
On the vi editors on my other machines, for xml and java code, different fields have different colors, allowing me a whole bunch of readability ease. Plus, when there are grammatical errors in either format, errors are colored red. I assume for other file types the coloring is also implemented.:p

On the vi editor on hostmonster, there are two colors, the color of the type and the color of the background. :(

Bob

still.a.geek
09-13-2007, 10:07 PM
You'll probably need to set your terminal session environment. It should be something like 'export TERM=xterm', if you're using bash/ksh/sh or 'set TERM xterm' if you're using csh/tcsh. You can do a 'man' on xterm and then search for TERM for other values (like vt100, vt220, etc). I'm pretty sure it should be xterm.

bob.h
09-14-2007, 02:42 AM
You'll probably need to set your terminal session environment. It should be something like 'export TERM=xterm', if you're using bash/ksh/sh or 'set TERM xterm' if you're using csh/tcsh. You can do a 'man' on xterm and then search for TERM for other values (like vt100, vt220, etc). I'm pretty sure it should be xterm.

Vince,

Thanks for your help!

I am using bash on three different servers. My terminal is thru a WinXP session. On the two servers that uses vi with all of the handy features, the xterm parameter is **NOT** set in .bash_profile and .bashrc. I have already looked for such a setting.

However, my bash session **DOES** use different colors for different files. So I don't think that it is a bash parameter. I think that it has to be a vi or vim parameter.

Thanks again - Bob

bob.h
09-14-2007, 10:15 AM
Cade at Hostmonster responded to a support request. For those, like me, who were using .exrc, copy .exrc over to .vimrc. For using color sytaxing, set sytax on.

My thanks to all who submitted suggestions and Cade at Hostmonster.com.

Bob