Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
153 views
in Technique[技术] by (71.8m points)

vim - Vim73 not picking up any color, including scheme

I had been using Vim through Putty on a windows machine for the last 6 months and everything was fine. After seeing somebody using a new text editor that had amazing colors, I decided to venture down the colorscheme path. This worked great for about 24 hours and then i decided i wanted to add a bunch of plugins which required me to recompile my VIM. After doing so (using vim73), I NO longer can get any colors in my vim. It is black and white with a foggy background. My .vimrc file has not changed neither has the color scheme i was using, zenburn.

I get no errors, except that the colors just aren't working.

I did a

strace -o vim_strace vim

to make sure that my .vimrc file was being loaded but still nothing. I'm wondering if i have some legacy file that is actually get read after the fact and overwriting my desired colors.

Any thoughts on this one??? Pretty much stranded with no way out.

UPDATED INFO: @epsilonhalbe: I used this build of VIM and configuration options:

hg clone https://vim.googlecode.com/hg/ vim
./configure --enable-rubyinterp
make

This killed my colors. I couldn't find a 'colors' option in the configuration file.

@kev:I tried running a colors:zenburn which did nothing, however, trying another scheme like color:desert does in fact change the colors, BUT, everything is still black and white, just various shades. Its like i am using black and white instead of colors, but it appears that it is reading and applying the scemes, just incorrectly.

My .vimrc file is located -> ~/.vimrc

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Thanks so much for all the help but I figured it out. It looks like when i compiled again the default functionlaity of syntax was turned off.

All I had to do was add:

:syntax on

to my .vimrc file and I am back in action.

Thanks again!!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...