Vi/Vim手工自行安装配色方案的主要步骤包括:
- 确认当前用户目录下存在
~/.vim/colors
目录,没有则新建,安装的Vim配色方案对应.vim文件需放在该目录下 - 下载或编辑某个配色方案的
.vim文件
,保存到~/.vim/colors
目录下 - 修改Vim配置文件
~/.vimrc
,增加配置项colorscheme molokai并保存 (假设下载了一个叫molokai的配色方案文件molokai.vim)
注意
:配置项中的 molokai 为配色方案文件的文件名,Vim通过该文件名加载对应.vim文件
1.acme-colors
acme-colors配色方案支持256种颜色,对应.vim文件下载地址为:https://github.com/plan9-for-vimspace/acme-colors/blob/master/colors/acme.vim

2.base16
base16配色方案包含一系列配色,还提供了一些额外的插件供安装,具体使用可参考github上的说明:https://github.com/chriskempson/base16-vim

3.gotham
Gotham自称是一个非常dark的配色方案,包含 gotham和gotham256以及一些其他插件配置,github地址为:https://github.com/whatyouhide/vim-gotham

4.gruvbox
gruvbox配色方案在github上的评价较高,据说对人眼非常pleasant,Vim教程网就是用的这个配色方案,下面是github地址及配色截图:https://github.com/morhetz/gruvbox

5.janah
janah也是一个dark型的配色方案,github地址为:https://github.com/mhinz/vim-janah

6.jellybeans
jellybeans在github上也较流行,github地址:https://github.com/nanotech/jellybeans.vim

7.lucius
lucius配色方案的github地址:https://github.com/jonathanfilip/vim-lucius

8.molokai
molokai配色方案非常出名,知乎上有个问题你认为最好看的 Vim 配色方案是哪款,molokai的呼声非常高https://github.com/tomasr/molokai

9.oceanic-next
oceanic-next是一个neovim配色方案,依赖其他几个插件和配色方案https://github.com/mhartington/oceanic-next

10.paramount
paramount是一个比较简单的Vim配色方案,只关注一些关键配置https://github.com/owickstrom/vim-colors-paramount

11.flattened
flattened也是一个很简介但不简单的配色方案,官方说法是没有废话“without the bullshit”https://github.com/romainl/flattened

12.railscasts
railscasts同时支持GUI和终端方式,github地址为:https://github.com/jpo/vim-railscasts-theme

13.seoul256
seoul256是一个低对比度(low-contrast)的配色方案,github地址:https://github.com/junegunn/seoul256.vim

14.solarized
solarized配色方案在github上的star非常多https://github.com/altercation/vim-colors-solarized

15.yowish
yowish配色方案同时支持GUI和256色终端,也是一个 dark 主题https://github.com/kabbamine/yowish.vim

16.Solarized
Solarized可以称得上是Vim配色方案中最为流行和推崇的方案 (几乎可以说是没有之一),所以不管这篇文章的主题是什么,最先推荐给大家的主题,我首选Solarized。其下载地址为:https://github.com/altercation/vim-colors-solarized,star数已经超过5000了。

17.GRB256
GRB256是基于ir_black方案而设计的一款Vim配色方案,作者同为Gary Bernhard。对于Ruby on Rails和Python开发者来说,是一款非常友好的简约型配色,推荐使用。其github地址为:https://github.com/garybernhardt/dotfiles/blob/master/.vim/colors/grb256.vim

18.Distinguished
Distinguished是一个面向256-color终端的暗黑型配色方案,对于JavaScript语言来说,是一个非常值得推荐的主题,当然,这款Vim配色对于Ruby和Python开发者来说,也是一个非常不错的选择。其github下载地址为:https://github.com/Lokaltog/vim-distinguished

19.Guardian
Guardian是面向XHTML和CSS文件而设计的一款Vim配色方案,但是对于Ruby和Javascript开发者来说,也是一个非常不错的选择。其官方下载地址为:http://www.vim.org/scripts/script.php?script_id=1240

20.Railscasts
Railscasts配色方案是由Ryan Bates通过移植其在TextMate (Mac下的著名的文本编辑器软件,与BBedit一起并称Mac上的emacs和vim) 所使用的配色到Vim而产生的,如果你是一位Ruby或ptyhon语言的使用者,那么你一定要尝试下这个Vim配色。其github地址为:https://github.com/ryanb/dotfiles/blob/master/vim/colors/railscasts.vim

21.Twilight
Twilight也是一款从TextMate移植过来的Vim配色方案,但是青出于蓝,在一些场景下甚至比TextMate上的twilight配色更加完美。如果你曾经是TextMate编辑器的使用者,那么强烈建议你尝试下这款名叫Twilight的Vim配色方案。其官网下载地址为:http://www.vim.org/scripts/script.php?script_id=1677

22.Jellybeans
Jellybeans是一个色彩鲜明但不花哨的Vim配色方案,据说是基于 ir_black 和 twilight 主题而进行设计实现。虽然官方称其主要是为了给gVim和MacVim所实现,但是其对256-color终端也是非常友好的。配色下载地址为:https://github.com/nanotech/jellybeans.vim

23.Vividchalk
Vividchalk也是一款从TextMate移植过来的Vim配色方案,它基于TextMae上一个叫做Vibrant Ink的主题而设计和开发。不管是GUI,还是256-color、88-color 或者是 16-color 终端,都能很好地进行支持。下载地址为:https://github.com/tpope/vim-vividchalk

24.Candy
Candy是一款隐藏色系的Vim配色方案 (hidden color schemes),色彩鲜明、关键词突出,是我自己非常喜欢的一款Vim配色,其下载地址为:http://www.vim.org/scripts/script.php?script_id=282

25.GitHub
这是一款基于GitHub的 light-background 语法高亮而实现的一款Vim配色方案,对于completion menus、diffsplit、STL highlighting 等十分友好。其官方下载地址为:http://www.vim.org/scripts/script.php?script_id=2855
