Ⅰ. 插件描述
Elegant vim theme with bright colors.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用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.gitManually
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 snazzyTo always use the snazzy color scheme add the following line to your .vimrc
colorscheme snazzyOptions
Transparent Background
Add this to your vim configlet 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:
- All of the code lives inside
colors/snazzy.vim - The variables for the palette are set at the top
:exeis used so we can use the variables via string concatenation- 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:
- Colorizer – Shows you the visual representation of colours
- HiLinkTrace - Used to tell you the syntax group for your highlight rule
- hexHighlight - (gVim) Shows you the colours that the hex-values represent
- Vimcasts: Creating colorschemes for vim
- Working with vim colorschemes
Related
- iterm2-snazzy - iTerm2 version
- terminal-snazzy - Terminal version
- konsole-snazzy - Konsole version
- vscode-snazzy - VS Code version
- emacs-snazzy - Emacs version
- termite-snazzy - Termite version
- deepin-snazzy - Linux Deepin terminal version
- kitty-snazzy - Kitty version
License
MIT © Connor Holyday