sponsor Vim development Vim logo Vim Book Ad

basic Tip #25: color highlighting on telnet (esp w/ SecureCRT)

 tip karma   Rating 515/139, Viewed by 8567 

Read and edit this tip on the Vim tip wiki. The wiki may have a more recent version of this tip.

created:   March 4, 2001 13:13      complexity:   basic
author:   [email protected]      as of Vim:   5.7

The following settings in .vimrc will enable color highlighting when using SecureCRT and may work on other telnet packages. The terminal type should be selected as ANSI and color enabled.


if !has("gui_running")
set t_Co=8
set t_Sf=^[[3%p1%dm
set t_Sb=^[[4%p1%dm
endif


The ^[ is entered as "<ctrl-v><esc>"

 rate this tip  Life Changing Helpful Unfulfilling 

<< changing the default syntax highlighting | Getting rid of ^M - mixing dos and unix >>

Additional Notes

Anonymous, July 17, 2002 18:30


Of course this isn't what I wanted to do .... I wanted to get rid of the stupid syntax colors by default.


but by extension:    t_Co=1    does this perfectly;  I just put it in my system wide vimrc file.
Anonymous, April 15, 2003 6:18
I think you can enable color via SecureCRT Session Options :
Emulation/Terminal : Linux + Ansi Color
Appearance/Current Color Scheme : Windows
[email protected], September 1, 2006 4:14
And in most cases the color problems are simply solved by:

:syntax on
anonymous, December 2, 2006 19:57
Funny ;)

Either way did not work with SecureCRT, but perfectly with putty
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo