GithubHelp home page GithubHelp logo

seoul256.vim's Introduction

"  _____             _ ___ ___ ___      "
" |   __|___ ___ _ _| |_  |  _|  _|     "
" |__   | -_| . | | | |  _|_  | . |     "
" |_____|___|___|___|_|___|___|___|.vim "

seoul256.vim travis-ci

seoul256.vim is a low-contrast Vim color scheme based on Seoul Colors. Works on 256-color terminal or on GVim.

seoul256

seoul256

seoul256 (light version)

seoul256-light

Installation

Use your favorite plugin manager.

  • vim-plug
    1. Add Plug 'junegunn/seoul256.vim' to .vimrc
    2. Run :PlugInstall

Color schemes

" Unified color scheme (default: dark)
colo seoul256

" Light color scheme
colo seoul256-light

" Switch
set background=dark
set background=light

Change background color

seoul256-bg

" seoul256 (dark):
"   Range:   233 (darkest) ~ 239 (lightest)
"   Default: 237
let g:seoul256_background = 236
colo seoul256

" seoul256 (light):
"   Range:   252 (darkest) ~ 256 (lightest)
"   Default: 253
let g:seoul256_background = 256
colo seoul256

If g:seoul256_background is set, seoul256 will choose the right version based on the value and set background=dark/light will not switch versions.

If you'd like to switch versions with custom background colors, set g:seoul256_background to be a dark value, and additionally define g:seoul256_light_background for seoul256-light.

let g:seoul256_background = 233
let g:seoul256_light_background = 256

colo seoul256
colo seoul256-light

Alternate 256-xterm -> sRGB mapping

The GUI RGB colors are derived from 256-color-terminal color codes in the source code, with the help of a lookup table.

By default, the table contains RGB values of terminal colors as displayed by iTerm2 on macOS. If you're using another terminal emulator (urxvt, xfce4-terminal,... pretty much any terminal on Linux), the colors aren't displayed in the same way. That's why you may see a difference in color of GUI and terminal [n]vim in Linux.

If let g:seoul256_srgb is set to 1, the color mapping is altered to suit the way urxvt (and various other terminals) renders them. That way, the colors of the terminal and GUI versions are uniformly colored on Linux.

let g:seoul256_srgb = 1

Current background color

When loaded, seoul256.vim will set up two global variables so that you can use them to customize other plugins:

  • g:seoul256_current_fg - Current foreground color in ANSI code
  • g:seoul256_current_bg - Current background color in ANSI code

iTerm2 color scheme

Emacs color theme

kitty color theme

Author

Junegunn Choi

License

MIT

seoul256.vim's People

Contributors

adriaanzon avatar anandpiyer avatar ayarulin avatar bjornekstrom avatar cascremers avatar chu-andrew avatar dolio avatar ianks avatar jberczel avatar junegunn avatar pgdouyon avatar rafaelrinaldi avatar randrej avatar spudnyk avatar ubmit avatar yamafaktory 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

seoul256.vim's Issues

Urxvt Colorscheme is overides in Vim Colorscheme

  • Why my urxvt-colorscheme is override in vim colorscheme :) I don't know why this happen !! I'm using padding in urxvt . This happens also in gnome I already tried ** hi Normal ctermbg=NONE **

flame

String and Statement colors

Hi,

I'm encountering a weird issue on syntax highlighted. Please refers to othree/yajs.vim#18 (comment) and its following comments. It seems the Statement and String's color are the same in my terminal vim. However, I do check the seoul256.vim's color, the Statement and String has different value... do you have any idea about this?

Thanks.

Highlight Neovim's Whitespace group

Recently a Whitespace highlight group was added to Neovim (neovim/neovim#6367).

It got linked to NonText by default, which results in the difference as shown in these screenshots neovim/neovim#6367 (comment) (the two bottom most screenshots)

For seoul256, Whitespace should link to SpecialKey to make it the same color as before. However you may also want to take advantage of this addition, and highlight Whitespace with less contrast than SpecialKey on Neovim.

Feature request: vim / neovim terminal colors

I added this as a quick fix to make the neovim terminal colors match the seoul256 terminal color scheme:

" set terminal colors
if has('nvim')
  let g:terminal_color_0 = '#4E4E4E'
  let g:terminal_color_8 = '#626262'

  let g:terminal_color_1 = '#D68787'
  let g:terminal_color_9 = '#D75F87'

  let g:terminal_color_2 = '#5F865F'
  let g:terminal_color_10 = '#87AF87'

  let g:terminal_color_3 = '#D8AF5F'
  let g:terminal_color_11 = '#FFD787'

  let g:terminal_color_4 = '#85ADD4'
  let g:terminal_color_12 = '#ADD4FB'

  let g:terminal_color_5 = '#D7AFAF'
  let g:terminal_color_13 = '#FFAFAF'

  let g:terminal_color_6 = '#87AFAF'
  let g:terminal_color_14 = '#87D7D7'

  let g:terminal_color_7 = '#D0D0D0'
  let g:terminal_color_15 = '#E4E4E4'
endif

This works for me, but it's probably not a complete solution (i.e. I don't think this takes the light / dark color variants into account). It would be great if terminal color support was built into this colorscheme.

Matching wallpapers (and macOS UI)

I’ve been trying to find some wallpapers, or even solid colours as wallpapers, that ‘match’ with seoul256. I thought it might be cool to have matching photos of Seoul, but I haven’t been able to find any good ones that ‘fit’ the colour scheme.

Could anyone recommend anything? If any good finds turn up then maybe we could add them to the wiki.

On a side note, what macOS appearance fits best with seoul256 (in your opinion)? Dark mode and graphite? Light with green accents? Just the standard light and blue? I ask because I find the dark mode of macOS Mojave to be too dark for seoul256, but the light mode a bit too much of a shock when working at night?

Any recommendations for this too?

Popups in NeoVim are illegible

Hi @junegunn, thank you for this amazing colorscheme. I've been using it for years now and I've never considered switching.

I'm getting this when using coc.nvim:

Screen Shot 2019-03-28 at 8 11 45 PM

The text in the popup is very difficult to read.

switch active / non active layout

Hey, thx for the very nice theme.

i wanted to ask if it is possible to switch the layout for the active / not active vim windows?

i like it more to have the current window darker than the not active ones.

zsh theme

Can I ask if there is a theme for zsh? when I load the theme in zsh and open vim, I found the color is different from the screenshot? Here is my screenshot:

2018-01-09 10 38 08

Light iterm colours feedback

New colours are definitely easier on the eyes, overall. I like the browner yellows and overall colour balance.

There are a couple of colours that stick out quite unpleasantly on my term(probably because they're being bolded as well):

  • the 'bright' red and green 1;31m and 1;32m (ANSI9 and ANSI10), a bit too dark for my eyes. I just swapped in the old ones from your first revision.

Oh and I just discovered plug yesterday, while checking out how neovim was doing. :D

I'll take a look later on my laptop as well, colours on this monitor can be a bit off sometimes.

Screen flickering

Nice theme!

I have an issue though - with two windows in vsplit, screen flickers every time when I move through buffer and only if have unsaved changes.

if i do :colors default, there's no flickering anymore.

tnx

git commits could have more semantic colors…

Traditionally, additions are green, deletions are red, and modified lines are some neutral-ish color like yellow/purple/whatever.

Right now… deletions are yellow, additions are purple… I'm not quite sure what modified is.

Is this something I should modify in another plugin, or what?

E108: No such variable: "s:style"

Got this error:


line 718: sourcing "/Users/xbeta/.config/nvim/plugged/vim-colorschemes/colors/seoul256.vim"
Error detected while processing /Users/xbeta/dotfiles/config/nvim.symlink/plugged/vim-colorschemes/colors/seoul256.vim:
line   95:
E108: No such variable: "s:style"
S

currently on Neovim

how to set the background totally black

I knew that the range is 233~255, but I want it totally black, any way to do it ?
I try to add the highlight Normal ctermbg=black to the end of the seoul color vim file but not work

Switch between dark/light schemes with custom background for each one

Thanks for this amazing colorscheme! This is not a bug, I think it can be taken as 'newbie question' or 'enhancement'.

First, I can switch among this two schemes inside vim using
:colorscheme seoul256
:colorscheme seoul256-light

Now... taking advantage of the feature you provide to increase/decrease the backgound darkness... how can I configure in .vimrc different backgound colors for each one of the schemes?

Font used in images

Sorry, this is not an issue, but, what font are you using in the images? looks great with the theme.

Thanks in advance.

[Request] Add highlight groups for Neovim LSP

Neovim v0.5.0 includes built-in language server protocol (LSP) support and this colorscheme does not have relevant highlight groups for it. I understand that adding highlight groups for every new plugin/feature that comes along would be unwieldy, but considering the fact that this will be included as a core part of Neovim, I think it is worth adding.

These are the relevant groups:

LspDiagnosticsDefaultHint       
LspDiagnosticsDefaultError      
LspDiagnosticsDefaultWarning    
LspDiagnosticsDefaultInformation

In the meantime I have the following set as a workaround:

highlight! link LspDiagnosticsSignError Exception
highlight! link LspDiagnosticsSignWarning WarningMsg

Can't set background totally black on MacOS

It seems that on OSX I can't set the background to black, it only sets to black the line where my cursor is, it's pretty weird because with the exact same setup but in Linux instead of OSX, it works...

Color usage documentation

Hi @junegunn,

What do you think about adding documentation on how the colors are chosen for the parts of the code that they highlight.

Looking in the code I could only find the numbers from 1-255, making it hard to implement the color scheme for other applications.

For example I created sharkdp/vivid#93 but figuring out the colors was difficult.

A simple table in markdown in the Readme could be enough and help to establish the Seoul colors across many apps.

vim can set font bold

Hi everyone,
I used seoul256 scheme just now, and it is pretty.
But I find I can not set font bold, like this:
image

Moreover, I find my statusline missed..

Thank you!

Support for bold/italic Markdown text

Hi Junegunn — I recently started using Vim, and now I'm looking to incorporate it into my prose-writing workflow. (goyo and limelight are awesome!) Would you be open to adding bold and italic Markdown support to seoul256, similar to pencil.vim?

pencil colourscheme

Add support for more ALE highlight groups?

seoul256.vim already supports ALEErrorSign and ALEWarningSign. Would it be possible/acceptable to also add the following?

  • ALEError
  • ALEWarning
  • ALEInfo
  • ALEInfoSign

In my case, LanguageClient-neovim relies on these groups to highlight diagnostics, so I'm currently overriding them with other groups to get colors and underlines/squigglies when using seoul256. But it might be nice for users who are unaware of this if it worked out of the box.

And thanks for an awesome theme!

fatal: could not read Username for 'https://github.com': terminal prompts disabled

Failed to install due to this error:

x seoul256.vim:
    Cloning into '/home/ross/.vim/plugged/seoul256.vim'...
    fatal: could not read Username for 'https://github.com': terminal prompts disabled

In my .vimrc/.config/nvim/init.vim (Removed extra stuff to make it easier to follow):

call plug#begin('~/.vim/plugged')
  Plug 'anned20/vimsence'

  Plug 'junegunn/seoul256.vim'
  Plug 'junegunn/vim-easy-align'
call plug#end()

Plug version: 0.10.0-1
Neovim version: 0.3.4-2

Colors colder than in screenshot

Is it my imagination, or are the colors in the readme's screenshot warmer than the theme colors really are? I'd love to have that 'warmer' option without using redshift.

For instance, take a look at this:
screenshot_2016-10-27_20-50-43

In the screenshot:
left: readme screenshot; middle: nvim-qt; right: nvim in urxvt (256)

Line selecton background colors (teal) are:
readme scrot = #327173 (50, 113, 115)
nvim-qt (rgb) = #007173 (0, 113, 115)
nvim in urxvt (256) = #005F5F (0, 95, 95), though that's expected

Am I missing something? Were You using redshift or such when taking the scrot?

'ExtraWhitespace' clashes with 'vim-better-whitespace' plugin

Hi,
first of all thank you for all your work for the dev community. I'm using a lot of your work (this plugin, vim-plugin, fzf, vim-easy-align and the list goes on).

I'm reporting what I think is an issue, and has been bothering me for a long time now: the ExtraWhitespace highlight definition. I find the definition in this plugin provides too little contrast. I barely see it in my files.

I'm also using a "dedicated" plugin for this vim-better-whitespace. That plugin defines a screaming red color for ExtraWhitespace and I like that one more (actually it hurts my eyes, but I remove it faster that way).
But, since seoul256 defines this highlight, vim-better-whitespace plays nice and doesn't overwrite it.

Could this be implemented in some other way to let dedicated plugins take precedence?
If not, would you consider removing the ExtraWhitespace highlight definition?

Thanks!

Distribute colorscheme with Vim?

there is an issue open in the vim repository, to distribute more colorschemes with Vim. Would you kindly give your permission to distribute this colorscheme with Vim?

Convert to lifepillar/vim-colortemplate

Hi! Off the bat, I just wanted to say that I’ve been a long-time user of seoul256 (on and off since I started Vim a year ago), and I just wanted to thank you for all the great work you’ve done, not only on this colourscheme, but also on all your Vim plugins 😄!

I was wondering if you had considered switching over to colortemplate to make not only the handling of colours in true colour and 256 easier, but also to make the general syntax of writing a colourscheme easier.

In particular, I’ve noticed that there is a lot of code in seoul256 to make sure that the colours render properly everywhere, but that does not seem the case any longer (see #50 and #32) as iTerm v3.0 changed the way colours are handled, which meant that the 256-variant of seoul256 does not display colours properly in either iTerm or Terminal.app. As you have mentioned, all the versions of seoul256 that cannot be used on macOS are not tested by you, so you do not know if there is anything wrong with them.

In the state the colourscheme is at now, the only way to get the correct colours is to: use MacVim, or iTerm with termguicolors.

I just found these points interesting, not meant as criticism at all, I really like the things you do 👍


Edit: I have created a new repository that replicates most (missing the plugin and ruby stuff) of the dark version of seoul256 in the default background colour. It displays the colours I have defined correctly (I’m sure there are some mistakes, but not that many) the same as seoul256, and the 256 version is much closer to the termguicolors or GUI version than seoul256.

P.S. I am not sure how you would replicate the background-setting stuff and the colours that are dependent on it e.g.

call s:hi('ExtraWhitespace', ['', ''], [s:dark_bg - 1, s:light_bg - 2])

Also, I think using set bg to define whether you want the light or dark version is a bad practice? (I’m not sure).

Spelling errors are not visible on current line if cursorline is on

To reproduce:

  • create a file with some spelling error
  • turn on spell check, enable cursorline
  • put the cursor on the line with the spelling error
  • at this point the misspelled word will not be visible (for seoul256-light) or will not have the red background (for the dark seoul256)

screen shot 2014-07-30 at 1 52 07 pm
screen shot 2014-07-30 at 1 50 45 pm

Not sure if this is hard or even possible to fix.
Anyway, thank you for the theme!

No Haskell support?

Hello @junegunn,

First of all great work with this theme, it is really awesome. I've been using it since last week, but I just opened an Haskell file and almost everything is white :( Does this colorscheme support Haskell? What other languages does it support?

screen shot 2016-11-13 at 9 58 50 am

Thanks.

change listchars's color

hi, seoul256 is a beauty vim scheme, and I wonder know how to change listchars's color , thanks :)

here is my vim setting

set list
set listchars=tab:\▋,

Source command fails for seoul256-light (no space between 'source' and filename)

  • Platform
    • Windows
    • Mac
    • Linux
  • Vim
    • Terminal
    • Gvim

Patch from PR #36 broke the source command (seoul256-light.vim#L67) in Windows because fnameescape() did not handle the network drive (ex. C:\).
Relative paths and absolute paths without the network drive work (ex. /Vim/vim80/colors/desert.vim with set shellslash).

Steps to Reproduce Issue:

  1. Open terminal vim or Gvim
  2. :colorscheme seoul256-light

Result: E492: Not an editor command: silent source<filepath>

Workaround:

  • add back the space (ex. 'silent source ' . <file>)

For gui spelling errors

Please change gui spelling errors to use undercurl instead of underline. Spelling errors then show up more clearly in gui vim and falls back to underline if not supported.

Errors are illegible

Errors in Vim are currently quite hard to read, looking like this:
error1

I solved this for me with this change here,

-call s:hi('Error', [s:dark_fg, s:light_bg_1], [52, 174])
+call s:hi('Error', [s:dark_fg, s:light_bg_1], [9, 174])

making errors look like this:
error2

I haven't investigated any side-effects this might've had, but you might want to consider the change? 😊

Visual selection background color of light variation

Currently using your colorscheme and it's really as nice as solarized.

I would like to ask you to improve the background color of the visual block in the light colorscheme. I can barely distinguish it from the normal background.

seoul256.vim + coc.nvim color scheme issues

hi there!

first off, thank you for your work with this theme among others -- big fan of this theme along with goyo + limelight and a bunch of other vim plugins you've worked on.

I recently installed coc.nvim for autocompletion + suggestions and noticed that seoul256.vim's color scheme for suggestions + descriptions within coc.nvim are hard to read. I've attached a couple of screenshots as an example.

Screenshot from 2020-01-31 16-08-50

Screenshot from 2020-01-31 16-11-46

is there something I can do to help fix this?

thanks again!

Conceal highlight is too light

On line #328 you define the conceal highlighting for the indentLine plugin.

That's fine, but then there are plugins like the vim-javascript plugin, which also use the conceal features. It uses the conceal features for stuff like making the function become a fancy f, for eye-candy.

Here is a picture of the problem:

2014-08-03-103744_636x796_scrot

Notice on the line right above the cursor, where there is an anonymous function there is a barely visible f.

Could this highlighting be made a little bit more obvious? Or perhaps add a feature to be able to customize it or set it to certain values? Thanks. :)

Same with dark background:

2014-08-03-104249_636x796_scrot

In case this helps, I have the following config in my .gvimrc file:

let g:seoul256_background=235
let g:seoul256_light_background=255
colorscheme seoul256-light

Thanks! :)

Little script for dimming/brightening screen colors

Not an issue

Working late at night I like adjusting the screen brightness/contrast. Perhaps someone else will also find this little mapping useful.

On Mac F1/F2 special keys (pressed together with Fn key) Dim/Brighten screen so this mapping seems very natural.

" brighten/dim background - a'la macOS dim screen function keys
" 233 (darkest) ~ 239 (lightest) 252 (darkest) ~ 256 (lightest)
function! Seoul256Brighten()
    if g:seoul256_background == 239
        let g:seoul256_background = 252
    elseif g:seoul256_background == 256
        let  g:seoul256_background = 256
    else
        let g:seoul256_background += 1
    endif
    colo seoul256
endfunction
"
function! Seoul256Dim()
    if g:seoul256_background == 252
        let g:seoul256_background = 239
    elseif g:seoul256_background == 233
        let g:seoul256_background = 233
    else
        let g:seoul256_background -= 1
    endif
    colo seoul256
endfunction
"
nmap <F1> :call Seoul256Dim()<CR>
nmap <F2> :call Seoul256Brighten()<CR>

16 colors to use

In a 16 color setup, what would be the Seoul colors that would go along with the 16 terminal colors?

Also, I am using Termite so I can also re-define any of the 256 colors, if that would make the terminal version more accurate then if you could please provide those as well, that'd be cool. ;)

Thank you very much! :)

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.