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
pyte
when 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
:RandomColor
The 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):
- Light Schemes (pale)
- Pyte– 's Favorite light color
- Eclipse
- Summerfruit
- Autumnleaf
- Ironman
- Nuvola
- Oceanlight
- simpleandfriendly
- Mayansmoke
- 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
- 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