让 Terminal/vim 使用 Solarized 配色
经过亲身体验,终于使用上了solarized的配色,之前配出来相差太多,于是找到这篇参考博文:http://blog.csdn.net/angle_birds/article/details/11694325
终于成功了,不容易呀,本人使用的是Ubuntu 12.04.1,可以看看的去体验了
下面谈谈具体操作
在终端里边启动vim,终端的配色会影响vim的配色;vim的配色是叠加到终端的颜色上的,所以很多时候对vim的配色都和设想的不一样。
在线配色网址: http://bytefluent.com/devify/ ,配置完成后,可以下载配置文件。
1.先改终端的配色为Solarized
现在基本用 ubuntu 做开发,直接在终端(gnome-terminal)里面 vim,但配色效果不甚满意,因为 gvim 的配色是 Solarized,google 告诉我 Gnome-Terminal 也可以这样配。可以先围观下效果图:
首先安装 git:sudo apt-get install git-core
然后要设一下 solarized theme for GNU ls,不然在 Terminal 下 ls 啥的都灰蒙蒙的,也不舒服:
git clone git://github.com/seebi/dircolors-solarized.git
dircolor-solarized 有几个配色,你可以去项目那看看说明,我自己用的是 dark256:
cp ~/dircolors-solarized/dircolors.256dark ~/.dircolors
eval 'dircolors .dircolors'
设置 Terminal 支持 256 色,vim .barshrc 并添加 export TERM=xterm-256color,这样 dircolors for GNU ls 算设置完成了。
别忘了先 source .bashrc 。
接下来下载 Solarized 的 Gnome-Terminal 配色:
git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git 下载完成后运行如下命令 cd gnome-terminal-colors-solarized 到该目录下运行配色脚本:./set_dark.sh 或./set_light.sh
。。。。。。。这就算搞定了。
(这里还有一个修改自 sigurdga 这个 Solarized 配色的,就是背景色跟 solarized 的稍微不一样,项目地址是:https://github.com/coolwanglu/gnome-terminal-colors-solarized)这个没试,或许是gnome-terminal-colors-solarized的不同版本吧!
2.改完终端的配色,再改VIM的配色,只要把 solarized.vim 复制到 ~/.vim/plugin/ 目录下就可以了。(博主这里是 ~/.vim/plugin/,但试过提示错误,然后我把它放在 ~/.vim/colors/中就可以了)
.vimrc 里边加上:
syntax enable
set background=dark
colorscheme solarized
下载地址:
git clone git://github.com/altercation/vim-colors-solarized
不出意外的话就大功告成了。。。。。。。。。。。。。。
本人英语不好,下面也没看,但是为尊重博主的成果,也将其粘贴过来,以参考
Theme #1: "256dark" (by seebi)
Features / Properties
- Solarized :-)
- Comment style for backup and log and cache files
- Highlighted style for files of special interest (.tex, Makefiles, .ini ...)
- Bold hierarchies:
- archive = violet, compressed archive = violet + bold
- audio = orange, video = orange + bold
- Tested use-cases:
- latex directories
- source code directories
- Special files (block devices, pipes, ...) are inverted using thesolarized light palette for the background
- Symbolic links bold and distinguishable from directories
Screenshots
Here is a 1920pxx1200px screenshot of a prepared tmux-session.It is captured from a gnome-terminal using the dz-version of the awesome Inconsolata font but you can use any libvte based terminal emulator (and other emulator which support 256colors).I recently switched tosakura and my decision was based onthis comparison and the priming that the gnome-terminal was too slow and too fat.
- upper left - Common colors in action: Executables, archives, audio/video stuff, dead links
- lower left - latex directory: tex-trash is in comment style and tex are main files of interest and highlighted
- upper right and thereunder - source directories: all source files are standard highlighted, makefiles, configuration files and READMEs are of special interest, and object and class files are commented out.
- lower right - all colors in action, uncommon stuff like pipes and block devices

Some more screenshots are provided by andrew from webupd8.org.
Theme #2: "ansi-\*" (byhuyz)
This theme and its variants require that the terminal emulator be properlyconfigured to display the Solarized palette instead of the 16 default ANSIcolors.
Features / Properties
This theme called "ansi-universal" and its variants "ansi-dark" and"ansi-light", were designed to work best with both Solarized Dark and Lightpalettes, but also to work under terminals' default ANSI colors. In otherwords, these themes were designed with a "fallback" scenario: if you happen tofind yourself on a terminal where the Solarized palette has not been set up,you won't have elements become invisible, incrediby hard to read, or a boringgray.
Thus, the universal theme was designed with these 4 palettes in mind:
- Solarized Dark: "ansi-universal" works best when the terminal emulator isset to this scheme
- Solarized Light: "ansi-universal" works best when the terminal emulator isset to this scheme
- Default terminal ANSI Colors with a dark background
- Default terminal ANSI Colors with a light background
The "ansi-dark" and "ansi-light" are slightly optimized versions of "ansi-universal"for Solarized Dark and Solarized Light, respectively, if you're willingto sacrifice a bit of universality.
Colors were selected based on the characteristics of the items to be displayed:
- Visibility generally follows importance, with an attempt to let unimportantitems fade into the background (which is not always possible whensimultaneously supporting dark and light backgrounds)
- Loud colors are chosen to call attention to noteworthy items
Screenshots
Solarized Dark (this example uses iTerm2 on OS X):
]
To see what this theme looks like when the terminal emulator is set with different color palettes:
让 Terminal/vim 使用 Solarized 配色的更多相关文章
- CentOS7.5下gnome-terminal+vim的solarized配色方案
1.简介 Solarized是一款包括浅色和深色的配色方案,适用于很多应用,可以让你的应用看起来更加漂亮!官网地址:http://ethanschoonover.com/solarized 2.设置g ...
- vim设置solarized配色
最近在学习使用VIM.我选择Solarized配色.相信很多人也都在用. 官网地址: http://ethanschoonover.com/solarized 看这配色:八卦乾坤,赏心悦目,高端大气上 ...
- ubuntu14.04设置terminal配色方案以配合使用vim的Solarized插件
在安装vim插件之前,首先安装Vundle插件,用来管理vim插件,安装方法查看Vundle在github上的指南.在安装vundle的时候出现了一个错误E117:unknown function v ...
- Vim以及Terminal 配色方案---"Solarized"配色
linux用户给vim 以及terminal的配色方案---Solarized配色 官网地址:http://ethanschoonover.com/solarized 看这配色:八卦乾坤,赏心悦目,高 ...
- 在 Mac OS X 终端里使用 Solarized 配色方案
MacOS X 终端solarized配色 相信长期浸泡在终端和代码的小伙伴们都有一套自己喜爱的配色方案.以前一直在用简单.适合阅读的 Terminal.app 配色方案,换到 MacBook Pro ...
- ubuntu终端常用命令及solarized配色(护眼)
ubuntu终端常用命令及solarized配色(护眼) ubuntu 终端 命令 1.常用命令 ctrl + l - 清屏 . cLear ctrl + c - 终止命令. ctrl + d ...
- mac下使用Solarized配色方案
Solarized配色方案不用多介绍了.具体点击这里:http://ethanschoonover.com/solarized 我们首先搞定macvim 你需要下载solarized.vim配色文件, ...
- 在终端里使用 Solarized 配色方案
在终端里使用 Solarized 配色方案 参考: 1.在 Mac OS X 终端里使用 Solarized 配色方案 2.solarized
- vim conf文件配色
VIM conf文件配色 一.配置文件 1.下载Nginx配置文件的语法文件:nginx.vim wget http://www.vim.org/scripts/download_script.php ...
随机推荐
- PyCharm5.0.2最新版破解注册激活码(图文版)
下载PyCharm http://download-cf.jetbrains.com/python/pycharm-professional-5.0.2.exe 安装PyCharm 设置激活服务器 ...
- 【转载】知乎答案----孙志岗----Google 发布了程序员养成指南,国内互联网巨头是否也有类似的指南和课程推荐
国内公司在复制国外商业模式的同时,也应复制人家的社会担当.所以,来答题了!就参考 Google 的框架,列一下中文的课程.大体上在线学完一个计算机专业,是基本不成问题的.但是,这不意味着你可以不上大学 ...
- java进程性能分析步骤-超越昨天的自己系列(11)
java进程load过高分析步骤: top 查看java进程情况 top -Hp 查看某个进程的具体线程情况 printf 0x%x 确认哪一个线程占用cpu比较多,拿出来转成16进制 ...
- ueditor在使用requirejs时,报ZeroClipboard undefined错误
再网上找到了 http://blog.csdn.net/xundh/article/details/44536665 这样一篇文章, 其中原因说的很明白了 是因为在有requirejs时, ...
- // 开始无限播放 ViewPager
public class MainActivity extends Activity { private ViewPager vp; private Handler handler = new ...
- 职责链模式(chain of responsibility Pattern)
职责链模式:使多个对象都有机会处理请求,从而避免请求的发送者和接受者之间的耦合关系.将这个对象连成一条链,并沿着这条链传递该请求,直到有一个对象处理他为止. •Handler: 抽象处理者:定义出一个 ...
- 简单的鼠标可拖动div 兼容IE/FF
来源:http://www.cnblogs.com/imwtr/p/4355416.html 作者: 主要思路: 一个div,注册监听onmousedown事件,然后处理获取的对象及其相关值(对象高度 ...
- 【转】浏览器内核、渲染引擎、js引擎
[1]定义 浏览器内核分成两部分渲染引擎和js引擎,由于js引擎越来越独立,内核就倾向于只指渲染引擎 渲染引擎是一种对HTML文档进行解析并将其显示在页面上的工具[2]常见引擎 渲染引擎: firef ...
- 解决Selenium Webdriver执行测试时,每个测试方法都打开一个浏览器窗口的问题
虽然把WebDriver定义为一个静态变量了,但是每次执行测试都要打开多个窗口,挺浪费时间的. 找了很多中方法,比如使用setUpClass, BeforeSuite都没有完全解决问题.后来无意间发现 ...
- ios 开发小技巧一
对于UITableViewCell中的textField/textView,你肯定想让它编辑时可以把所在行滚动到键盘上方.如果你的VC是UITableViewController或者子类,那么只要在o ...