Skip to content

franbach/miramare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Miramar Vim Theme

Ruby on Rails

Ruby

Html

Html

Javascript

JavaScript

Sass

Sass

Features

  • Dark brownish warm-toned.
  • Soft contrast.
  • Customizable.
  • Rich support for common file types and plugins.

Installation

Via Plugin Manager

Take vim-plug for example:

Plug 'franbach/miramare'

For better syntax highlighting support, please install sheerun/vim-polyglot.

Vim 8 packages

Add packloadall to your .vimrc (if you haven't already):

.vimrc:

packloadall

Clone miramare into your ./vim/pack/plugins/start directory:

mkdir -p ~/.vim/pack/plugins/start
git clone https://github.com/franbach/miramare.git ~/.vim/pack/plugins/start/miramare

Manually

  1. Clone this repository.
  2. Copy /path/to/miramare/colors/miramare.vim to ~/.vim/colors/miramare.vim
  3. To install airline theme, copy /path/to/miramare/autoload/airline/themes/miramare.vim to ~/.vim/autoload/airline/themes/miramare.vim

Usage

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

Airline

To enable airline color scheme, put this in your vimrc:

let g:airline_theme = 'miramare'

To apply it without reloading:

:AirlineTheme miramare

Configuration

Note: The configuration options should be placed before colorscheme miramare .

  • g:miramare_transparent_background: Set to 1 to enable transparent background.
    • Available values: 0, 1
    • Default value: 0
  • g:miramare_enable_italic_string: Set to 1 to enable italic in String .
    • Available values: 0, 1
    • Default value: 0
  • g:miramare_disable_italic_comment: Set to 1 to disable italic in Comment .
    • Available values: 0, 1
    • Default value: 0
  • g:miramare_enable_italic: Set to 1 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
  • g:miramare_enable_bold: Set to 1 to enable bold in Type, Function, Constant .
    • Available values: 0, 1
    • Default value: 1
  • g:miramare_cursor: Customize the cursor color, only works in GUI clients.
    • Available values: 'auto', 'red', 'green', 'blue', 'purple'
    • Default value: 'auto'
  • 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.
  • g:miramare_palette: overwrite colors - see s:palette in ./colors/miramare.vim
    • Example (sets a lighter grey): let g:miramare_palette = {'light_grey': ['#c0c0c0', '245', 'LightGrey']}

FAQ

Q: It doesn't work as expected.

A:

  1. This color scheme is mainly designed for true colors, set termguicolors is required. Check output of vim --version, maybe your vim doesn't support termguicolors.
  2. Maybe your terminal emulator doesn't support true colors, you can test it using this script.
  3. 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?
  4. 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:

  1. JetBrains Mono Medium (Patched - Nerd Fonts) Jetbrains.
  2. Enable italic keywords in this color scheme: let g:miramare_enable_italic = 1
  3. Disable italic comment(optional): let g:miramare_disable_italic_comment = 1

Inspirations

THANKS

  • Creator of "Forest Night" theme. Used it to figure out how the Vim color schemes work in practise.

License

MIT © franbach

About

🍁 Comfortable & Pleasant Color Scheme for Vim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published