GithubHelp home page GithubHelp logo

vim-picker's Introduction

VIM Color Picker

Why?

When you're editing VIMs syntax files you have dozens of hl statements. Each statement has 6 color parameters:

  • guifg - for gVIM text color
  • guibg - for gVIM text background color
  • ctermbg - text color for 256-colored terminal
  • ctermfg - text background color for 256-colored terminal
  • termfg - 16-color terminal text color
  • termbg - 16-color terminal background color

And they all must look alike. Well, thats the plan at least.

The problem is that you should not just make up your color scheme, but also code it, test it and make all types of terminals look alike. This is daunting. Very daunting.

Recently I've been trying to do that and came to conclusion that I'm doing it wrong. This little script tries to solve the problem.

Features

  • Implements CIEDE2000 algorithm for automatically matching your colors (especially useful for 256-GUI hex matching).
  • Nicely previews result.
  • Generates hl line so you won't have to type colors yourself.
  • Drag and drop colors around. After you've chosen one color you can just drag & drop it to other holders. Color will be approximated as needed.
  • Can parse lines and understands named colors.

Screenshots

CTERM chooser

More here

Don't be afraid of that huge palette, you can still use color wheel. Its value will be used to find nearest color.

Requirements

Requires Python 2.7 and Gtk2 Python bindings.

Usage

$ git clone https://github.com/naquad/vim-picker.git
$ cd vim-picker
$ ./picker.py

You may have to change first line of picker.py (shebang) to make sure it points to right Python interpreter.

Credits

Thanks to EasyRGB for CIEDE2000 implementation.

Bugs & Features

All goes to issues.

vim-picker's People

Contributors

gobenji avatar naquad avatar

Watchers

 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.