Ruby on Rails
Html
Javascript
Sass
- Dark brownish warm-toned.
- Soft contrast.
- Customizable.
- Rich support for common file types and plugins.
Take vim-plug for example:
Plug 'franbach/miramare'
For better syntax highlighting support, please install sheerun/vim-polyglot.
- Clone this repository.
- Copy
/path/to/miramare/colors/miramare.vim
to~/.vim/colors/miramare.vim
- To install airline theme, copy
/path/to/miramare/autoload/airline/themes/miramare.vim
to~/.vim/autoload/airline/themes/miramare.vim
Put this in your vimrc:
" important!!
set termguicolors
" the configuration options should be placed before `colorscheme miramare`
let g:miramare_enable_italic = 1
let g:miramare_disable_italic_comment = 1
colorscheme miramare
See Configuration for more options.
If you want to apply this color scheme temporarily, run this command in vim(this may cause color broken):
:colorscheme miramare
To enable airline color scheme, put this in your vimrc:
let g:airline_theme = 'miramare'
To apply it without reloading:
:AirlineTheme miramare
Note: The configuration options should be placed before colorscheme miramare
.
g:miramare_transparent_background
: Set to1
to enable transparent background.- Available values:
0
,1
- Default value:
0
- Available values:
g:miramare_enable_italic_string
: Set to1
to enable italic inString
.- Available values:
0
,1
- Default value:
0
- Available values:
g:miramare_disable_italic_comment
: Set to1
to disable italic inComment
.- Available values:
0
,1
- Default value:
0
- Available values:
g:miramare_enable_italic
: Set to1
to italicize keywords. This option is designed to use with fonts that support cursive italic styles, for example Fira Code iCursive Op.- Available values:
0
,1
- Default value:
0
- Available values:
g:miramare_enable_bold
: Set to1
to enable bold inType
,Function
,Constant
.- Available values:
0
,1
- Default value:
1
- Available values:
g:miramare_cursor
: Customize the cursor color, only works in GUI clients.- Available values:
'auto'
,'red'
,'green'
,'blue'
,'purple'
- Default value:
'auto'
- Available values:
g:miramare_current_word
: Some plugins can highlight the word under current cursor(for example neoclide/coc-highlight), you can use this option to control their behavior.- Available values:
'bold'
,'underline'
,'italic'
,'grey background'
- Default value:
'grey background'
when not in transparent mode,'bold'
when in transparent mode.
- Available values:
Q: It doesn't work as expected.
A:
- This color scheme is mainly designed for true colors,
set termguicolors
is required. Check output ofvim --version
, maybe your vim doesn't supporttermguicolors
. - Maybe your terminal emulator doesn't support true colors, you can test it using this script.
- If you are running vim in tmux, you need to override default true colors of tmux, as tmux cannot display true colors properly: #1246 How to use true colors in vim under tmux?
- There are many highlight group links in syntax files while a color scheme may change them, enabling one color scheme based on another color scheme enabled is very likely to cause colors to break. If any color is broken, you can enable the color scheme in your vimrc instead of after vim startup.
Q: Which font am I using?
A:
- JetBrains Mono Medium (Patched - Nerd Fonts) Jetbrains.
- Enable italic keywords in this color scheme:
let g:miramare_enable_italic = 1
- Disable italic comment(optional):
let g:miramare_disable_italic_comment = 1
- Creator of "Forest Night" theme. Used it to figure out how the Vim color schemes work in practise.
MIT © franbach