Xshell下Ubuntu及VIM的配色方案

来源:互联网 发布:ubuntu只有客人会话 编辑:程序博客网 时间:2024/05/22 04:33

开始使用xshell来代替putty——虽然还是一直很喜欢putty——但xshell的确有很多新功能。

过去putty每次自己都需要调色来达到长时间对着Terminal工作不至于眼睛太疲劳,往往调配多次还是不太满意。


使用Xshell之后,知道Linux其实最开始只支持8色,于是在下面文章中学习了,并把Xshell下Ubuntu调整为256色:

http://uluobo.com/%E8%AE%A9linux-ssh-terminal-vim-support-256-colors/


在.bashrc或者/etc/profile里面添加如下代码:

if [ -e /usr/share/terminfo/x/xterm-256color ]; thenexport TERM='xterm-256color'elseexport TERM='xterm-color'fi
其中提到了把VIM也改成256色的,需要按照下面的内容:

http://uluobo.com/xshell-vim-color-vimrc/

下载darkburn.vim,并且Copy到” /usr/share/vim/vim{version}/colors/”目录下,然后在VIM的配置文件中加”colorscheme darkburn”。


到此,Linux和VIM的确都是256色了,但是Xshell对于很多蓝色的显示内容不清晰,很模糊,亲测putty没有这个问题。

经研究,必须更改Xshell的配色方案:

http://blog.csdn.net/wide288/article/details/25072441

[Solarized Dark]text(bold)=839496magenta(bold)=6c71c4text=839496white(bold)=fdf6e3green=859900red(bold)=cb4b16green(bold)=586e75black(bold)=073642red=dc322fblue=268bd2black=002b36blue(bold)=839496yellow(bold)=657b83cyan(bold)=93a1a1yellow=b58900magenta=dd3682background=042028white=eee8d5cyan=2aa198[Names]count=1name0=Solarized Dark



保存为solarized-dark.xcs,然后在配色(Tools-> color schemes)那里导入方案。

然后再更改session属性为该方案即可完成配色。perfect!

0 0
原创粉丝点击