Skip to content

hoop33/vim-moonfly-colors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moonfly

moonfly is a dark color scheme for Vim and Neovim that has taken inspiration from:

Note, the moonfly color scheme does incrementally change from time to time, primarily in regards to language and plugin theming. However, the core color palette will not change.

A simple companion statusline, vim-moonfly-statuline, is also available.

Screenshots

Ruby

Ruby

JavaScript

Ruby

Languages explicitly styled

  • C/C++
  • Shell
  • Python
  • Ruby
  • Elixir
  • JavaScript/ES6
  • CoffeeScript
  • Markdown
  • Go
  • Rust
  • Java

Plugins explicity styled

  • NERDTree
  • Tagbar
  • Neomake
  • CtrlP
  • clever-f
  • BufExplorer

Installation

Use your favoured plugin manager to install bluz71/vim-moonfly-colors then set the colorscheme in your vimrc file.

If using vim-plug do the following:

  1. Add Plug 'bluz71/vim-moonfly-colors' to your vimrc
  2. Run :PlugInstall
  3. Add colorscheme moonfly to your vimrc, make sure this line appears after the Plug declaration.

Options

The g:moonflyCursorLineNr option specifies whether to highlight the cursor line, as blue, in the number column if the relativenumber or cursorline settings are in effect. By default the cursor line will be highlighted as such.

To disable highlighting of the current cursor line in the number column please add the following to your vimrc:

let g:moonflyCursorLineNr = 0

The g:moonflySpellReversed option specifies whether to highlight spelling errors in bold reversed colors. By default spelling errors will be highlighted using colored undercurls. However, most (all?) terminals do not appear to support undercurls let alone colored undercurls, simple underlines are usually displayed. Note, GUI-based Vim's, such as gVim and Macvim, do correctly display colored undercurls.

To highlight spelling errors in bold reverse colors please add the following to your vimrc:

let g:moonflySpellReversed = 1

True Color Terminals

Quite a few modern terminal programs, like iTerm2 and st, support 24-bit true colors. Modern versions of Vim and Neovim, on such terminals, support true colors when set termguicolors is enabled.

On terminals that do support true colors, and when termguicolors is set, the moonfly color scheme will not require any terminal configuration to emit the correct moonfly colors.

When run under tmux the following setting needs to be added to ~/.tmux.conf:

set -ga terminal-overrides ',xterm-256color:Tc'

If consistency between Vim colors and $SHELL colors is important then I recommend proceeding with the 256-color configurations listed in the next section.

Caveat, Terminal.app on macOS and xterm on Unix do not support true colors. Also, true color support, in my experience, seems more stable in Neovim than it does in Vim.

256 Color Terminals

The moonfly Vim color scheme when used with Vim in a 256-color terminal requires the host terminal be setup with the moonfly color palette.

Also note, the host terminal should be configured for 256 colors, this usually means setting the terminal's type to xterm-256color or screen-256color when used with tmux.

iterm2 users on macOS can import this color scheme.

xterm users on Linux can add the following snippet to their ~/.Xresources file and launch xterm with xterm -name xterm-moonfly. A complete Xresources file is available here

xterm-moonfly*color0:  #373c40
xterm-moonfly*color1:  #ff5454
xterm-moonfly*color2:  #8cc85f
xterm-moonfly*color3:  #e3c78a
xterm-moonfly*color4:  #80a0ff
xterm-moonfly*color5:  #ce76e8
xterm-moonfly*color6:  #7ee0ce
xterm-moonfly*color7:  #de935f
xterm-moonfly*color8:  #f09479
xterm-moonfly*color9:  #fe3b7b
xterm-moonfly*color10: #42cf89
xterm-moonfly*color11: #cfcfb0
xterm-moonfly*color12: #78c2ff
xterm-moonfly*color13: #ae81ff
xterm-moonfly*color14: #85dc85
xterm-moonfly*color15: #e2637f

Other terminals should be setup with the following color configuration:

  • color0 / Palette 1 / Black: #373c40
  • color1 / Palette 2 / Red: #ff5454
  • color2 / Palette 3 / Green: #8cc85f
  • color3 / Palette 4 / Yellow: #e3c78a
  • color4 / Palette 5 / Blue: #80a0ff
  • color5 / Palette 6 / Magenta: #ce76e8
  • color6 / Palette 7 / Cyan: #7ee0ce
  • color7 / Palette 8 / White: #de935f
  • color8 / Palette 9 / Bold Black: #f09479
  • color9 / Palette 10 / Bold Red: #fe3b7b
  • color10 / Palette 11 / Bold Green: #42cf89
  • color11 / Palette 12 / Bold Yellow: #cfcfb0
  • color12 / Palette 13 / Bold Blue: #78c2ff
  • color13 / Palette 14 / Bold Magenta: #ae81ff
  • color14 / Palette 15 / Bold Cyan: #85dc85
  • color15 / Palette 16 / Bold White: #e2637f

License

MIT

About

A dark color scheme for Vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%