Vim (color scheme) and random color matching

Source: Internet
Author: User

Vim (color scheme) and random color matching

Color Matching has a great impact on the coding experience, and in the process of using it vim , I have been using
molokai– is considered the best color scheme ever.
Later, it was gradually discovered
Solarized,
Lucius and other excellent color scheme.

For a while, the .vimrc default color of the individual is molokai , but a color is used for a long time will be annoying. Hope to make
pytewhen using the scheme, you need to manually enter and execute :colo pyte to replace the color--Feel good trouble!

So always wondering vim if you can automatically randomly select one of the colors you like when starting up:

    • Each time vim you start, the color is automatically selected, and each time you start automatically select the color palette as different as possible, to avoid the use of a color matching cause the long-time boredom.
    • Automatically selected color should be one of my favorite colors
    • When the automatic selection of color is not what I want, I hope it is convenient to switch the color (at least more convenient than the manual input :colo pyte command)
Randomcolor.vim

So I wrote a plugin called
Randomcolor.vim, offers
:RandomColorThe command randomly switches the color palette and vim calls the command automatically each time it is started. If you
Want to use only one color palette, which can be .vimrc configured in g:random_color_start , for 0 example:

" 禁止vim启动时随机选择颜色0" 使用`pyte` 配色方案colo pyte

In .vimrc中 , you can use the g:random_color_schemes configuration to randomly switch which colors, such as

let g:random_color_schemes = [‘molokai‘,                    ‘zenburn‘,                    ‘jellybeans‘,                    ‘peaksea‘]

If not configured g:random_color_schemes , the randomColor.vim plug-in will use all available color party
Case.

Similar plugins

After writing the randomColor.vim plugin, I found that there are similar plugins on GitHub (search on GitHub vim color switch )

    • Biskark/vim-ultimate-colorscheme-utility GitHub-Highest Rated
    • Xolox/vim-colorscheme-switcher GitHub-rated second highest
    • Zeekay/vim-color-switch GitHub
    • Twe4ked/vim-colorscheme-switcher GitHub
    • Qualiabyte/vim-colorstepper GitHub
Color recommendation

Personal favorite light color is pyte , dark color is molokai – no monokai ,
The difference is seen in Vim colorschemes Monokai and Molokai.

In addition, some colors have been used (some are now used):

    1. Light Schemes (pale)
      • Pyte– 's Favorite light color
      • Eclipse
      • Summerfruit
      • Autumnleaf
      • Ironman
      • Nuvola
      • Oceanlight
      • simpleandfriendly
      • Mayansmoke
    2. Dark Schemes (Dark)
      • RGB256
      • Distinguished
      • jellybeans– the longest molokai color match before encountering it
      • Railscasts
      • Twilight
      • Vividchalk
      • Candy
      • ir_black– in the beginning of the surprise for heaven
      • Molokai– 's favorite Dark color
      • Zenburn
      • Desert
      • Gentooish
      • Wombat
      • wombat256
      • peaksea– with molokai a spell
    3. Special schemes (two colors: light coloured, also dark)
      • lucius– Light-coloured pyte , protected in dark, molokai with multiple options
      • solarized– very well-known color, personal not cold
      • Base16

Refer to the following article to choose a color match:

    • Vim Color schemes need to Own
    • Max Vim Color schemes that should consider Using
    • Top Color Schemes

Vim (color scheme) and random color matching

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.