vim-allomancer


Ⅰ. 插件描述

A dark, medium contrast vim colorscheme inspired by apprentice and two-firewatch

Ⅱ. 基本信息

创建日期:  2018-12-23
使用用户:  31
Github星:  89
插件作者:  Nadim Edde Gomez

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

logo

A dark vim colorscheme, inspired mainly by vim-two-firewatch but using colors from apprentice and some code from both apprentice and monokai-tasty. All credit for the source code goes to the original authors. I just put it all together in a way that matched what I like and I hope to grow this colorscheme with my own ideas and improvements in the future.

The name is inspired by Brandon Sanderson's awesome book series Mistborn

Main color palette

| Color name |Color Code | Color | Main use |
|------------------|---------- |------------------------------------------------------------|-----------------------|
| Blue | #6E88A6 |#6E88A6| Identifiers |
| Beige | #D7AFAF |#D7AFAF| Functions |
| Green | #87AF87 |#87AF87| Strings and Special |
| Red | #af5f5f |#af5f5f| Statements |
| Orange | #FF875F |#FF875F| Constants |
| Purple | #875faf |#875faf| Types |
| Aqua | #5fafaf |#5fafaf| Focus and Highlights |

Installation

To install the colorscheme you can either:

  1. Use a plugin manager such as vim-plug.

Add the following to your vimrc and run PlugInstall

Plug 'Nequo/vim-allomancer'
  1. Manually clone/download the repo and move the file allomancer.vim to ".vim/colors/"

Using the colorscheme

Once installed add the following to your .vimrc

set termguicolors "Remove this in urxvt
colo allomancer 

The colorscheme isn't working?

This is still a work in progress and the colors I use aren't in the 256 xterm colorspace. One "workaround" that I use is to use the matching colorscheme for your terminal so that the colors defined by the cterm calls match the gui ones. Here's an example .Xresources file that you can use. Plug it into terminal.sexy and export to your terminal's format.

*.foreground: #abb2bf
*.background: #282c34

*.color0:     #282c34
*.color8:     #55606d

*.color1:     #e06c75
*.color9:     #af5f5f

*.color2:     #87AF87
*.color10:    #87AF87

*.color3:     #D7AFAF
*.color11:    #FF875F

*.color4:     #6E88A6
*.color12:    #6E88A6

*.color5:     #D18EC2
*.color13:    #875faf

*.color6:     #5fafaf
*.color14:    #5fafaf

*.color7:     #ABB2BF
*.color15:    #ECEFF4

It's also available in the repo as allomancer.Xresources.

Modifying the colorscheme

Since this is the first iteration of the colorscheme, I don't have a vimrc cway of changing colors. However, it is quite easy to do so yourself. Here's some things you can do:

  1. Change a specific color. Do this by just changing the corresponding hex value at the start of the colorscheme file
  2. Change the highlighting of some token. Just find the corresponding token and change the associated function arguments (order is: fg,bg,formatting) Remember to check that you remove anything you are changing from the links dictionary if it is in there as the first argument as that will link the token to something else and the links are done last.
  3. Add highlighting for some token. This can be done by adding a line with the Highlight function and the Highlight group of what you're trying to highlight.

A quick tip is to add the following to your .vimrc in order to check the highlight group of what your cursor is on when you press F10 (or remap it to some other key):

map <F10> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
\ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>

Screenshots

Here's some samples of what it looks like for me in gnome-terminal with the Iosevka font:

Markdown

allomancer

Python

allomancer

Bash

allomancer

Arduino-C

allomancer

Haskell using this syntax file

allomancer

添加新评论