A dark monochromatic vim theme with a splash of color.
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.
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'
:colorscheme monosplash
If no other options are set, the splash color will be chosen based on the hash of the current working directory.
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
To enable the included lightline theme (which uses the above settings as well):
let g:lightline = {'colorscheme': 'monosplash'}
Monosplash is based on a combination of these beautiful themes:
Feel free to submit a pull request or open an issue for any bugfixes or improvements!
Made by mcombeau | LinkedIn: mcombeau | Website: codequoi.com