Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

终端不能正常显示问题 #104

Closed
wangshunping opened this issue May 4, 2015 · 13 comments
Closed

终端不能正常显示问题 #104

wangshunping opened this issue May 4, 2015 · 13 comments

Comments

@wangshunping
Copy link

使用GUI能够正常显示,如图:
image

但是在终端直接显示(mvim -v) 不能正常显示配色:
image

有人现在遇到这样的情况吗?

@ruanyl
Copy link
Contributor

ruanyl commented May 10, 2015

用terminal的话,应该设置let g:solarized_termcolors=16, 并且为你的iterm2安装solarized的preset:https://github.com/altercation/solarized/tree/master/iterm2-colors-solarized

@wangshunping
Copy link
Author

多谢指教。
我没有用iterm2, 用的是原生的终端。我在vimrc 中加了你提到的这句 let g:solarized_termcolors=16,没有效果

@ruanyl
Copy link
Contributor

ruanyl commented May 11, 2015

这里有原生的支持,你可以试试。https://github.com/altercation/solarized/tree/master/osx-terminal.app-colors-solarized

@wangshunping
Copy link
Author

多谢帮助,已解决。

我在这个页面上( http://ethanschoonover.com/solarized/vim-colors-solarized
找到了这样的一句:。
If you do use the custom terminal colors, solarized.vim should work out of the box for you. If you are using a terminal emulator that supports 256 colors and don’t want to use the custom Solarized terminal colors, you will need to use the degraded 256 colorscheme. To do so, simply add the following line before the colorschem solarized line:

let g:solarized_termcolors=256
Again, I recommend just changing your terminal colors to Solarized values either manually or via one of the many terminal schemes available for import.

大意是要把let g:solarized_termcolors=256 放在主题设置之前,然后就解决了,多谢帮助。

@ruanyl
Copy link
Contributor

ruanyl commented May 11, 2015

你设置之后颜色显示是和solarized一样的不?

2015-05-11 13:11 GMT+03:00 wangshunping notifications@github.com:

多谢帮助,已解决。

我在这个页面上(
http://ethanschoonover.com/solarized/vim-colors-solarized)找到了这样的一句:。
If you do use the custom terminal colors, solarized.vim should work out of
the box for you. If you are using a terminal emulator that supports 256
colors and don’t want to use the custom Solarized terminal colors, you will
need to use the degraded 256 colorscheme. To do so, simply add the
following line before the colorschem solarized line:

let g:solarized_termcolors=256
Again, I recommend just changing your terminal colors to Solarized values
either manually or via one of the many terminal schemes available for
import.

大意是要把let g:solarized_termcolors=256 放在主题设置之前,然后就解决了,多谢帮助。


Reply to this email directly or view it on GitHub
#104 (comment).

wangshunping pushed a commit to wangshunping/k-vim that referenced this issue May 11, 2015
to solve issur wklken#104
modify vimrc , add "let g:solarized_termcolors=256"
@wangshunping
Copy link
Author

应该是一样的吧~
上图:
image

为什么图看不到... 55555

@ruanyl
Copy link
Contributor

ruanyl commented May 11, 2015

01daa4d4-6ee0-4e50-bcca-5b212d5d3a9e

这是我iterm2的显示,我在terminal.app下跟你一样的结果。但是感觉配色也能接受,哈哈。

@fangwentong
Copy link
Contributor

明显背景不一样,可以更改一下terminal.app的颜色配置

这里有配置文件

@wklken
Copy link
Owner

wklken commented May 11, 2015

@ruanyl 的图目测才是iterm2配合k-vim配置后的效果.....系统默认终端没搞过:(
@fangwentong 能贴下你那四行配置不? 图不方便

@fangwentong
Copy link
Contributor

image

上面是terminal.app打开的效果, 可以添加一个 Solarized Dark 的描述文件, 并设为默认值, 具体描述文件可以到 这里 下载.

image

@ruanyl
Copy link
Contributor

ruanyl commented May 11, 2015

@fangwentong 谢谢,terminal.app已经显示正常

@wangshunping
Copy link
Author

@fangwentong 果然可以了,多谢。
虽然下一个文件然后import 进去显得逼格好低(゜▽^*))

@wklken
Copy link
Owner

wklken commented May 23, 2015

已加入README.md

谢谢大家:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants