Nefertiti


Ⅰ. 插件描述

Dark-background Vim Color Scheme with Dynamic Brightness Control (GUI-only)

Ⅱ. 基本信息

创建日期:  2014-06-14
使用用户:  17
Github星:  31
插件作者:  Jeet Sukumaran

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'jeetsukumaran/nefertiti'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'jeetsukumaran/nefertiti'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'jeetsukumaran/nefertiti'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Nefertiti

A warm dark-background color scheme for Vim (previously known as "MochaLatte"),
featuring dynamic control of brightness-levels as needed.

Brighten select (normal and syntax) colors with ":NefertitiBrighten", or
darken them with ":NefertitiDarken". Conveniently bound to "META-2" and
"META-1", respectively, but you can, of course, suppress the key mappings
and/or replace them with others of your own preference.

NOTE: GUI Vim only at the present time.

Installation

Pathogen

$ cd ~/.vim/bundle
$ git clone git://github.com/jeetsukumaran/vim-nefertiti

Vundle

:BundleInstall jeetsukumaran/vim-nefertiti

Manually

Copy the file "colors/nefertiti.vim" to your "~.vim/colors/"
subdirectory.

Updating from "MochaLatte"

This color scheme was previously known as "MochaLatte", as was the repository. If you cloned this repository from its "MochaLatte" days, everything should still work fine, though you will probably need to update your "~/.vimrc" to set the color scheme correctly.

If you installed this color scheme as a Git submodule, you might want to update by:

$ cd ~/.vim/bundle
$ git submodule deinit vim-mochalatte
$ git submodule add git://github.com/jeetsukumaran/vim-nefertiti vim-nefertiti
$ git commit -a -m "Updated MochaLatte to Nefertiti"

Usage

As with any other color scheme, simply use the ":colorscheme" command, e.g.:

:colors nefertiti

To set the color scheme permanently, add the following to your "~/.vimrc":

if has("gui")
    colorscheme nefertiti
endif

Three commands are provided to control the brightness levels: ":NefertitiBrighten", ":NefertitiDarken", and "NefertitiReset"; see the help for more details.

By default, "META-2" ("ALT-2" on some keyboards) increases the brightness of the text while "META-1" ("ALT-1" on some keyboards) decreases the brightness of text. These key-mappings can be suppressed and or customized: see the help for more details.

Note that for the default (or any other "META" or "ALT") key mappings to
work, if you are using MacVim, you will
also need something like the following in your "~/.vimrc":

if has("gui_macvim")
    set macmeta
endif

Samples






添加新评论