Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Monokai-inspired colorscheme #270

Open
romainl opened this issue Dec 2, 2024 · 3 comments
Open

Add Monokai-inspired colorscheme #270

romainl opened this issue Dec 2, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@romainl
Copy link
Collaborator

romainl commented Dec 2, 2024

Reference: https://github.com/ku1ik/vim-monokai.

@romainl romainl added the enhancement New feature or request label Dec 2, 2024
@k-37
Copy link

k-37 commented Dec 2, 2024

Hi @romainl,

I'm up for the challenge but I have never created Vim colorscheme from scratch.

Should I start by porting vim-monokai using vim-colortemplate?

What about colorscheme name, which one should be used for port? How about unokai?

@romainl
Copy link
Collaborator Author

romainl commented Dec 3, 2024

Cool!

The first step will be be to familiarize yourself with Colortemplate by playing with a template in this repo while reading its documentation.

The second step will be to:

  1. install Monokai if you haven't done it already,
  2. activate it with :color monokai,
  3. do :call colortemplate#import#run() to generate a template from the current colorscheme.

And the third step will be to massage that template until it looks like the others in this repo and.

Some of the colors will need to be ajusted a little, some of them will need to go because they are too close to existing ones, choices will need to made, etc. so that third step will not happen in an afternoon, obviously. But that's not a problem because we are not in a rush.

It is important to keep this in mind: the colorschemes in this repo are distributed with Vim so they are meant to work in as many environments as possible, from monochrome terminals to GUIs with millions of colors. This imposes a bunch of restrictions on what can be done.

@lifepillar
Copy link
Contributor

For step 2, I'd suggest that you start Vim with a vimrc that just loads the color scheme. By doing so, you will avoid importing a bunch of filetype-specific or plugin-specific highlight groups that you may have in your environment but you don't want in your color scheme. Example of minimal vimrc:

set nocompatible
filetype on
filetype plugin on
syntax on
set packpath+=~/.vim/pack/plugins/start/colortemplate
set runtimepath+=~/.vim/pack/colors/start/monokai
colorscheme monokai

In which of course you need to update the paths to match the location of Colortemplate and Monokai, respectively. Save as minimal_vimrc and start Vim with vim -u minimal_vimrc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants