Ⅰ. 插件描述
A vim/neovim colorschemeⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'sts10/vim-pink-moon'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'sts10/vim-pink-moon'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'sts10/vim-pink-moon'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/sts10/vim-pink-moon
Ⅳ. 文档说明
# Pink Moon, a colorscheme for Vim/Neovim
Installation
Option 1: Install via plugin manager vim-plug
- Add
Plug 'sts10/vim-pink-moon'
as a plugin in your Vim config file (eithervimrc
orinit.vim
if using Neovim) - Run
:PlugInstall
- Put
colorscheme pink-moon
in your Vim config file. vim-pink-moon should runset background=dark
for you.
(A similar procedure should work with other plugin managers.)
Option 2: Manual installation
- Clone or download this repo.
- Move
colors/pink-moon.vim
into your~/.vim/colors
directory. - Put
colorscheme pink-moon
andset background=dark
in yourvimrc
.
The font in the screenshots above is Deja Vu Sans Mono
Process/Inspiration
I'm still tweaking with this colorscheme quite a bit, so apologies if you liked an older version more. An older version is saved in this repo as yellow-moon
. Also, feel free to submit issues and pull requests.
I liked the vibe of this setup (which I found thanks to this Reddit post), though I ended up picking most if not all of the colors independently.
Getting True HEX Colors
Vim-Pink-Moon has HEX color codes in it, so it works well with GVim (including MacVim), as well as terminals that have true color support (like iTerm2 for macOS).
If you're using Neovim and macOS and having trouble with getting the colors in the screenshot above to appear for you, I've got a blog post explaining how to get HEX colors in iTerm2 using Neovim. I also later wrote a separate blog post about troubleshooting HEX colors will regular terminal Vim + iTerm.
Slack Theme
If you want to make your Slack theme match this Vim colorscheme, go to Preferences > Sidebar > Theme, scroll down to "Custom Theme", and paste in #333C47,#434852,#6F98B3,#F0FDFF,#434852,#F0FDFF,#D08785,#D08785
.