Giter Club home page Giter Club 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
  • packer.nvim

    1. Add use 'junegunn/seoul256.vim' to ~/.config/nvim/init.lua
    2. Run :PackerInstall

Color schemes

VimL

" Unified color scheme (default: dark)
colo seoul256

" Light color scheme
colo seoul256-light

" Switch
set background=dark
set background=light

Lua

-- Unified color scheme (default: dark)
vim.cmd[[colorscheme seoul256]]

-- Light color scheme
vim.cmd[[colorscheme seoul256-light]]

-- Switch
vim.g.background = dark
vim.g.background = light

Change background color

seoul256-bg

VimL

" 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

Lua

-- seoul256 (dark):
--   Range:   233 (darkest) ~ 239 (lightest)
--   Default: 237
vim.g.seoul256_background = 236
vim.cmd[[colorscheme seoul256]]

-- seoul256 (light):
--   Range:   252 (darkest) ~ 256 (lightest)
--   Default: 253
vim.g.seoul256_background = 256
vim.cmd[[colorscheme 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.

VimL

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

colo seoul256
colo seoul256-light

Lua

vim.g.seoul256_background = 233
vim.g.seoul256_light_background = 256
vim.cmd[[colorscheme seoul256]]
vim.cmd[[colorscheme 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.

VimL

let g:seoul256_srgb = 1

Lua

vim.g.seoul256_srgb = 1

Current background color

When loaded, soul256.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

Author

Junegunn Choi

License

MIT

seoul256.vim's People

Contributors

adriaanzon avatar anandpiyer avatar ayarulin avatar cascremers avatar dolio avatar ianks avatar junegunn avatar pgdouyon avatar rafaelrinaldi avatar randrej avatar sorachii avatar spudnyk avatar yamafaktory avatar

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.