Results 1 to 4 of 4
I want to enable the color in my vi editor to easy capture words,etc. The problem is its not enabled. I tried to put .vimrc with "syntax enable" and tried ...
- 02-27-2008 #1Linux Newbie
- Join Date
- Mar 2006
- Posts
- 101
how to enable color in vi
I want to enable the color in my vi editor to easy capture words,etc. The problem is its not enabled. I tried to put .vimrc with "syntax enable" and tried to edit a text file but still doesn't work. I also edit /etc/vimrc and put "syntax enable".
Anyone knows how to activate it???
- 02-27-2008 #2Just Joined!
- Join Date
- Feb 2008
- Posts
- 50
By default, screen is not aware that it is running in a 256 color capable xterm. To make programs in screen recognize this feature, you need to set three things in your ~/.screenrc:
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce "on"
Refer this link: The 256 color mode of xterm
Thanks,
Pankaj.
- 03-07-2008 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 50
Hi,
have you enable your vim colors..?
To enable colors you have to just edit "vimrc" file.
By default Vim stores its global configuration in /etc/vim/vimrc, and user specific configuration in ~/.vimrc.
Enabling syntax color highlighting during vim startup is as simple as adding the following line in configuration file.
:syntax enable
on Debian:
syntax on
- 03-08-2008 #4
Make sure you are using vim ver. 7.0+. I prefer the solution suggested by ypankaj.


Reply With Quote