vim-snazzy


Ⅰ. 插件描述

Elegant vim theme with bright colors.

Ⅱ. 基本信息

创建日期:  2018-04-16
使用用户:  163
Github星:  187
插件作者:  Connor Holyday

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-snazzy

Elegant vim theme with bright colors. Based on hyper-snazzy by Sindre Sorhus.

This is still an early build, I'll be implementing better language support as I use this more myself.

All feedback, comments, and PRs welcome.

Screenshots

PHP

CSS

JS

JSX

Installation

Vundle or vim-plug

To install using Vundle or vim-plug
add one of the following line to your .vimrc

" vundle
Plugin 'connorholyday/vim-snazzy'

" vim-plug
Plug 'connorholyday/vim-snazzy'

Pathogen

To install using Pathogen run the following command

cd ~/.vim/bundle && git clone git@github.com:connorholyday/vim-snazzy.git

Manually

To install manually download https://raw.githubusercontent.com/connorholyday/vim-snazzy/master/colors/snazzy.vim

Place the file in ~/.vim/colors/ or <your-vim-dir>\vimfiles\colors\ on Windows.

For Neovim place the file in ~/.config/nvim/colors/

Running

To load the color scheme run

:colorscheme snazzy

To always use the snazzy color scheme add the following line to your .vimrc

colorscheme snazzy

Options

Transparent Background

Add this to your vim config
let g:SnazzyTransparent = 1

Lightline

Enable the Lightline colorscheme

let g:lightline = {
\ 'colorscheme': 'snazzy',
\ }

Contributing

There are only a couple of things you need to know if you want to help out:

  1. All of the code lives inside colors/snazzy.vim
  2. The variables for the palette are set at the top
  3. :exe is used so we can use the variables via string concatenation
  4. If you're adding a new section, try to keep it to a new block and title it with a comment

There is a test/ directory for language files that you can use to test out the highlighting, feel free to improve them or include your language of choice.

Here's a list of helpful plugins and articles to get you started:

Related

License

MIT © Connor Holyday

添加新评论