Giter Club home page Giter Club logo

monosplash.vim's Introduction

monosplash.vim

A dark monochromatic vim theme with a splash of color.

Monosplash vim colorscheme in action

The accent color is customizable and can be automatically picked depending on the current working directory. This can enable you tell different vim sessions apart at a glance.

Monosplash supports GUI and 256 color terminals.

Installation

Manual install: Copy all of the files to your ~/.vim directory.

Install via a vim plugin manager:

  • NeoBundle: NeoBundle 'mcombeau/monosplash.vim'
  • Pathogen: cd ~/.vim/bundle && git clone https://github.com/mcombeau/monosplash.vim.git
  • Plug: Plug 'mcombeau/monosplash.vim'
  • Vundle: Plugin 'mcombeau/monosplash.vim'

Usage

:colorscheme monosplash

If no other options are set, the splash color will be chosen based on the hash of the current working directory.

Options

The options you can set in your .vimrc are:

" Set your preferred splash color for all vim instances
" (This option overrides the auto_cwd_color option, but can be overridden by
" directory-specific color option)
let g:monosplash_color = 'yellow' " (default if auto_cwd_color is disabled)
let g:monosplash_color = 'orange'
let g:monosplash_color = 'red'
let g:monosplash_color = 'green'
let g:monosplash_color = 'blue'
let g:monosplash_color = 'magenta'
let g:monosplash_color = 'cyan'

" Enable/disable setting the splash color using a hash of the current working directory
" {This option is overridden if a global splash color is set)
let g:monosplash_auto_cwd_color = 0 " disable
let g:monosplash_auto_cwd_color = 1 " enable (default)

" Enable/disable no background color mode (if enabled, uses the terminal's default background)
let g:monosplash_no_bg = 0 " disable (default)
let g:monosplash_no_bg = 1 " enable

" Set the colorscheme after adjusting options
colorscheme monosplash

You can also set a specific splash color for a specific directory:

" This overrides global options auto_cwd_color and global splash color in a specific directory
" (This needs to be added after the global splash color option if there is one)
if getcwd() =~ 'dir/my-project'
  let g:monosplash_color = 'cyan'
endif

Lightline Theme

To enable the included lightline theme (which uses the above settings as well):

let g:lightline = {'colorscheme': 'monosplash'}

Credits

Monosplash is based on a combination of these beautiful themes:

Contribute

Feel free to submit a pull request or open an issue for any bugfixes or improvements!


Made by mcombeau | LinkedIn: mcombeau | Website: codequoi.com

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.