Vim73 没有选择任何颜色,包括方案 [英] Vim73 not picking up any color, including scheme

查看:34
本文介绍了Vim73 没有选择任何颜色,包括方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去 6 个月我一直在 Windows 机器上通过 Putty 使用 Vim,一切都很好.在看到有人使用具有惊人色彩的新文本编辑器后,我决定冒险走颜色方案之路.这在大约 24 小时内运行良好,然后我决定添加一堆需要我重新编译 VIM 的插件.这样做后(使用vim73),我不再能在我的vim中获得任何颜色.它是黑色和白色,背景有雾.我的 .vimrc 文件没有改变,我使用的配色方案也没有改变,zenburn.

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.

我做了一个

strace -o vim_strace vim

确保我的 .vimrc 文件正在加载,但仍然没有.我想知道我是否有一些旧文件在事后被读取并覆盖了我想要的颜色.

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.

更新信息:@epsilonhalbe:我使用了这个 VIM 版本和配置选项:

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:我尝试运行一个colors:zenburn,它什么也没做,但是,尝试另一个方案,如color:desert 确实改变了颜色,但是,一切仍然是黑白的,只是各种色调.就像我使用黑色和白色而不是颜色一样,但它似乎正在阅读和应用 scemes,只是不正确.

@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.

我的 .vimrc 文件位于 -> ~/.vimrc

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

推荐答案

非常感谢所有的帮助,但我想通了.看起来当我再次编译时,语法的默认功能已关闭.

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.

我所要做的就是添加:

:syntax on

到我的 .vimrc 文件,我又开始行动了.

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

再次感谢!!

这篇关于Vim73 没有选择任何颜色,包括方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆