vim-colors-lunatic


Ⅰ. 插件描述

A muted colorscheme based on Solarized

Ⅱ. 基本信息

创建日期:  2013-01-25
使用用户:  3
Github星:  0
插件作者:  Bryan Richter

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'chreekat/vim-colors-lunatic'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'chreekat/vim-colors-lunatic'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'chreekat/vim-colors-lunatic'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/chreekat/vim-colors-lunatic

Ⅳ. 文档说明

# The Lunatic Colorscheme

See important experimentation notes below. Please.

*Don't like Solarized? Then you should probably just move along. No hard
feelings.*

Install this with Vundle or Pathogen or by copying colors/ into ~/.vim, and then:

C++ screen shot

What the Dingles?

<!-- Comments are cool. -->

This theme assumes you've done the Solarized bold-color hack on your terminal to
get 16 different colors in an 8-color palette. For gnome-terminal, you can use
the included solarize script^[1].

Next, this theme turns off a whole mess of colors.

But but...

Syntax highlighting means different things to different people. I find much of
it unnecessary. This colorscheme is an experiment in minimizing the amount of
colors on the screen.


  • It munges the "Default" theme, which is hardcoded. If you know a way around
    hardcoding that value, that would be sweet.
  • Yes, it toggles between light and dark, (cool huh?) but only if the current
    theme already is solarized!

Experimentation notes

Kindly note that (ahem) the Solarized theme breaks a lot of filetype-plugin
highlight links. An example from Haskell is hsImport. Originally linked to
Include, Solarized breaks that link and gives hsImport its own colors.

That's cool and all, but if you plan on flipping back and forth between
Solarized and Lunatic, you will not get the whole effect unless you restart

  1. Or, you know, figure out the right way of reloading filetype plugins. I
  2. know no other way of repairing those links. (I thought unletting

b:current_syntax might do it, but alas.)

License etc.

This work-in-progress is licensed under the WTFPL, which you can find in the
LICENSE file.

Whether or not this license is the best one to use is completely beyond me. I
have obviously used colors from Ethan Schoovener in my solarized script. So,
thanks, Ethan!

See also

Lunatic for mutt!

添加新评论