Giter Club home page Giter Club logo

vim-color-spring-night's Introduction

Calm Spring Color Scheme for Vim CI status

spring-night is a low contrast calm color scheme for Vim. It's colored with deep blue background, shiny yellow foreground and sakura🌸 text selection.

  • Both GUI/CUI 24bit colors and CUI 256 colors.
  • Aware of running Vim on translucent window.
  • Enable to tweak contrast.
  • Enable to opt out italic/bold decoration.
  • Optimized for loading time by generating optimized script.
  • Optimized for many filetypes.
  • Support vim-gitgutter and other several plugins.
  • Support Neovim/Vim (8.0.1685 or later) terminal ANSI colors.
  • Support Neovim float window colors.

On gVim (MacVim)

Vim script Go
Vim script on gVim (MacVim) Go on gVim (MacVim)

On Translucent Terminal (24bit color)

Vim script Go
Vim script on Vim (24bit color) Go on Vim (24bit color)

On Translucent Terminal (8bit color)

Vim script Go
Vim script on Vim (8bit color) Go on Vim (8bit color)

If you want to see more code, please visit demo page site.

Or you can also see the preview on vimcolors.com.

Installation

Copy colors directory into your ~/.vim (or ~/vimfiles on Windows) or use :packadd (Vim8). Or use your favorite plugin manager.

Usage

Write below in your .vimrc.

colorscheme spring-night

This package provides a theme for vim-airline.

let g:airline_theme = 'spring_night'

For lightline.vim:

let g:lightline.colorscheme = 'spring_night'

If you want to use 24bit colors on Vim in a terminal window, you also need to set termguicolors option. Please note that it requires a ISO-8613-3 compatible terminal to enable 24bit colors.

" For Vim 7.4.1799 or later
if has('termguicolors')
    let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
    let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
    set termguicolors
endif

" For Neovim 0.1.5 or later
set termguicolors

Customize

You can customize some behaviors of this colorscheme. Please note that these variable must be specified before running :colorscheme.

  • g:spring_night_kill_italic: If 1, this colorscheme does not use italic attribute. Default value is 0.
  • g:spring_night_kill_bold: If 1, this colorscheme does not use bold attribute. Default value is 0.
  • g:spring_night_high_contrast: If 1, it uses a bit high contrast colors. Default value depends on termguicolors option and whether on GUI or CUI Vim is running.
  • g:spring_night_highlight_terminal: If 1, a terminal window is also highlighted with this color scheme. Otherwise default ANSI colors are used. Default value is 1.
  • g:spring_night_cterm_italic: If 1, italic font is enabled even in a terminal. This variable is useful when your terminal supports italic fonts. Default value is 0.

Optimized Filetypes and Plugins

Color layouts are optimized for following filetypes/plugins:

Optimized Loading Time

Colorscheme file is generated by a script. And the generated script is optimized for loading time at Vim startup. In my environment, Vim loading time got 10x faster than before generating colorscheme file.

iTerm2 theme

This repository also provides iTerm2 theme of this colorscheme.

iTerm2 theme

How to apply this theme:

  1. Download spring-night.itermcolors
  2. Open iTerm2
  3. 'Preferences' β†’ 'Profiles' β†’ 'Colors'
  4. Click 'Colors Presets...' dropdown and select 'Import...'
  5. Select the downloaded file at 1.
  6. Click 'Colors Presets...' again
  7. Select 'spring-night'

Contribution

If you find some odd highlight, I'll be happy if you report it to issues with how to reproduce. And pull requests are of course welcome πŸ˜„

Colorscheme file is generated via a script. Please do not modify spring_night.vim directly. Modify the script instead. Please read a README for the script for more details. To know colors palette, please see table variable in spring_night_writer() function in the script.

Bonus: Slack Theme

#132132,#3a4b5c,#fedf81,#132132,#8090a0,#fffeeb,#a9dd9d,#a9667a

License

Licensed under the MIT license.

MIT License

Copyright (c) 2016 rhysd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
THE USE OR OTHER DEALINGS IN THE SOFTWARE.

vim-color-spring-night's People

Contributors

carywill avatar dependabot[bot] avatar jvolante avatar rhysd avatar somnam avatar windvalley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-color-spring-night's Issues

Can you add syntax highlight for SQL?

Hello, loving and using your awesome color scheme, I have a request for you.
Can you add syntax highlight for SQL? (Actually, I'm working as database administrator.)
Basic syntax highlight is available in *.sql files, but it doesn't work when I editing code block in markdown files...
I hope the cool colors be obvious in my documents:)

Hope you keep going your great work.
Yours sincerely.

I want SignColumn to differ from TabLine

I think it's special case, but I want SignColumn to differ from TabLine.
I'm using Vim-TabSideBar patch, so "tabsidebar" is left of sign column.
The highlight group of tabsidebar is TabSideBar, it's linked to TabLine at the top of tab page.

image

But it's difficult to see sign is appeared, for example, when warning(s) / error(s) of ALE exist in buffer.

5859d7fd32d66cffab681eb230592428

So now temporarily I changed SignColumn like this.

:hi SignColumn ctermfg=14 ctermbg=240 guifg=Cyan guibg=#4a5b6c

image

How do you think?

iTerm2 colorscheme

This is a great colorscheme! Thanks!
Something that would be great is to have terminal themes aswell, to match Vim.

MatchParen highlight resembles error / warning colors

The MatchParen highlight is very close to the colors used for errors and warnings. I often find myself staring at a highlighted matching bracket and then realizing that it's not actually an error.

Would you consider using a different highlight for MatchParen?

Background resets when vimrc is sourced

Hi, thanks for the great theme which I love, the only issue I am having is when I source my vimrc it changes the background to dark but on opening it or using it generally this does not happen. It only occurs when I source it.

I'm using terminal vim version 8.0
Inside Tmux version 2.3 (the issue occurs regardless of whether I use Tmux)
iTerm 2 build 3.0.14
Installed with Vundler

I've tried removing all display related themes and tinkered with most of my display related setting, below is a section of my vimrc with my display settings

if !has('gui_running')
  set term=screen-256color
endif


if has('termguicolors')
  set termguicolors


  " set vim-specific sequences for rgb colors
  "truecolor support in vim
  let &t_8f = "\<esc>[38;2;%lu;%lu;%lum"
  let &t_8b = "\<esc>[48;2;%lu;%lu;%lum"
endif


colorscheme spring-night
set g:spring_night_high_contrast=['cui']


Before:
screen shot 2017-02-25 at 19 15 30

After:
screen shot 2017-02-25 at 19 11 40

background color doesn't change

Hi,
First of all, I really appreciate you effort to build this awesome theme.

However, I downloaded it with vim-plug and its background is black not deep blue.
I guess one of my tmux conf or vimrc may mess it up but I have no idea about it.

I would really appreciate if you can give me some advice.

Font name?

What is the name of the font in the README screenshots?

Change cursor color depending on normal/insert/visual modes

It seems that Vim supports highlight Cursor and iTerm2 can change cursor color by the highlight. It would be useful to change cursor color depending on modes. This feature should be provided optionally. CursorIM is also provided. I'm not sure that it works in my environment but supporting input method as one of modes would be useful for input method users like me.

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.