GithubHelp home page GithubHelp logo

lmintmate / blue-mood-vim Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 4.0 189 KB

A port of emacs Blue Mood theme for Gvim and true color terminal vim. Includes Lightline theme.

License: MIT License

Vim Script 100.00%
vim gvim theme colorscheme lightline blue-mood

blue-mood-vim's Introduction

Blue Mood for Gvim and terminal vim

This is a port of emacs's Blue Mood theme for both Gvim and terminal vim.

Screenshot

Keep in mind that this port doesn't correspond 100% to the original emacs theme, due to the differences between vim's theming system and emacs's theming system.

Compatibility notice

This colorscheme is more geared towards the gui, which means that terminal vim is supported only for vim versions 7.4.1799 and up, as from this version onwards, the option set termguicolors has been added, which allows for support of gui colors in terminals that have true color support. For more information on this topic, consult this helpful section.

Installation

Manual

Place the theme file (blue-mood.vim) inside ~/.vim/colors (Unix) or vimfiles/colors (Windows), creating the folder if it doesn't already exist.

Package managers

Plugin Manager Add to your /.vimrc
Vim Plug Plug 'lmintmate/blue-mood-vim'
dein.vim call dein#add('lmintmate/blue-mood-vim')
minpac call minpac#add('lmintmate/blue-mood-vim')
vim-packager call packager#add('lmintmate/blue-mood-vim')
plugpac Pack 'lmintmate/blue-mood-vim'
Vundle Plugin 'lmintmate/blue-mood-vim'
NeoBundle NeoBundle 'lmintmate/blue-mood-vim'

These instructions aren't tested, as I personally use the manual install, but should work.

Activation

If you are on the gui, just set your colorscheme to blue-mood and you're good to go. If you are on the terminal, and provided that your version of vim is 7.4.1799 and above, first make sure your terminal emulator has true color support (this gist might be of help), and then put set termguicolors in your vimrc. Afterwards enable the colorscheme as normal.

Credits

The initial structure for this file was largely based upon ThemeCreator. I also consulted several articles of Vim documentation, most prominently the helpscreens :he group-name, :he highlight-groups, :he cterm-colors and the :highlight command, and also used the checklist here to make sure I had styled all important elements.

Lightline theme

With this colorscheme is also bundled a Lightline theme.

Lightline screenshot

To use it, given you have installed Lightline with the plugin manager of your choice, put in your vimrc (note the underscore in the theme's name):

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

Compatibility notice for this theme

If you installed the blue-mood vim colorscheme manually, you have to place the autoload folder somewhere where vim can see it. It might be thus easier to install the vim colorscheme via the plugin manager of your choice, which will automatically put the autoload folder in a place where it can be detected by vim.

This theme is also more geared towards the gui, and will display as intended on the terminal only if said terminal supports true colors and set termguicolors is present in the vimrc (see above). The theme can be used however even if both these conditions aren't met, as Lightline uses lightline#colorscheme#fill to convert the hex colors to their closest equivalent in the 256-color scale, though the colors won't be exactly the same as in the gui and true color terminal versions in this case.

Also note that other plugins that affect the statusline or the tabline (such as vim-buftabs, vim-bufferline, or vim-modusline) might interfere with the appearance of Lightline at launch (see here).

blue-mood-vim's People

Contributors

lmintmate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.