Skip to content
项目

关于

A vim/neovim colorscheme

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Pink Moon, a colorscheme for Vim/Neovim

A screenshot of some Rust code, as color-highlighted by the Pink Moon colorscheme, using the font Jetbrains Mono

A screenshot of some HTML and CSS, as color-highlighted by the Pink Moon colorscheme, using the font DejaVu Sans Mono

Installation

Option 1: Install via a plugin manager, like vim-plug

  1. Add Plug 'sts10/vim-pink-moon' as a plugin in your Vim config file (either vimrc or init.vim if using Neovim)
  2. Run :PlugInstall
  3. Put colorscheme pink-moon in your Vim config file. vim-pink-moon should run set background=dark for you, but you can put it in your config file as well.

A similar procedure should work with other plugin managers.

Option 2: Manual installation (assuming you're using Vim, as opposed to Neovim)

  1. Download the colorscheme: curl -O https://raw.githubusercontent.com/sts10/vim-pink-moon/master/colors/pink-moon.vim
  2. Move the colorscheme to ~/.vim/colors: mkdir -p ~/.vim/colors & mv pink-moon.vim ~/.vim/colors/
  3. Put colorscheme pink-moon and set background=dark in your vimrc.

Fonts in screenshots

The fonts in the screenshots above and below are Deja Vu Sans Mono and JetBrains Mono.

Inspiration

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. Not a lot of science involved!

Troubleshooting (Getting true HEX colors)

Vim-Pink-Moon has HEX color codes in it, so it works well with GUI versions of Vim (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 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 with regular terminal Vim + iTerm.

Further troubleshooting

Try re-ordering these settings in your Vim config file (e.g. vimrc) to the following

set termguicolors
colorscheme pink-moon
set background=dark

For help from another source, check the gruvbox wiki.

Slack Theme

If you want to make your Slack theme match Pink Moon, go to Preferences > Sidebar > Theme, scroll down to "Custom Theme", and paste in #333C47,#434852,#6F98B3,#F0FDFF,#434852,#F0FDFF,#D08785,#D08785.

More screenshots

A screenshot of some Ruby code, as color-highlighted by the Pink Moon colorscheme, using the font JetBrains Mono

A screenshot of some Ruby code, as color-highlighted by the Pink Moon colorscheme, using the font DejaVu Sans Mono

探索相关项目

加载中…