A plugin for switch color scheme and font, even on start up!
Before install this plugin, you should install
./fonts
folder, just install the fonts.Then,
:RandomTheme
to enjoy!g:favorite_color_schemes
By default, the plugin will try to find all the color schemes in runtime path.
If want to use your favorite color schemes for random, you can set a list/array
to this option in .vimrc
. For example:
let g:favorite_color_schemes = ['molokai',
\ 'zenburn',
\ 'jellybeans',
\ 'peaksea']
g:favorite_gui_fonts
The plugin will try to use default setting.
Note: Before using a font, you should install font on system by yourself.
let g:favorite_gui_fonts = [
\ 'Monaco:h12',
\ 'Fira\ Code:h12',
\ 'Cascadia\ Code:h12',
\ 'Ubuntu\ Mono:h14',
\ 'Inconsolata:h13',
\ 'Source\ Code\ Variable:h12',
\ 'JetBrains\ Mono:h13',
\ 'Consolas:h13'
\]
g:random_theme_day_start
/ g:random_theme_night_start
By default the plugin will apply the daytime theme from 8 to 19. This can be overridden the following way:
let g:random_theme_day_start = 10
let g:random_theme_night_start = 20
g:random_theme_start
The plugin will use a random color scheme and font when vim starting up by default.
If you want to disable this action, you can set the value of
g:random_theme_start
in .vimrc
. For example:
let g:random_theme_start = 0
colo pyte
Available values are here:
0
- Do not use'all'
- Use a random color scheme in all, default value'all:light'
- Use a random light color scheme in all'all:dark'
- Use a random dark color scheme in all'all:auto'
- Use a random color scheme by day or night'favorite'
- Use a random color scheme in favorite'favorite:light'
- Use a random light color scheme in favorite'favorite:dark'
- Use a random dark color scheme in favorite'favorite:auto'
- Use a random color scheme by day or night:RandomFont
- select a font from g:favorite_gui_fonts
:RandomFontZoom <size>
- zoom current font with extra size:RandomFontZoomReset
- reset current font size, equal to :RandomFontZoom 0
:RandomTheme
- select a color scheme from all available schemes and run :RandomFont
:RandomTheme
select a color scheme:RandomTheme dark
select a dark color scheme:RandomTheme light
select a light color scheme:RandomTheme auto
select a color scheme by day or night:RandomTheme $shemeName
select a special color scheme:RandomThemeFavorite
- select a color scheme from the schemes in g:favorite_color_schemes
and run :RandomFont
:RandomThemeFavorite
select a color scheme:RandomThemeFavorite dark
select a favorite dark color scheme:RandomThemeFavorite light
select a favorite light color scheme:RandomThemeFavorite auto
select a favorite color scheme by day or night:RandomThemeFavorite $schemeName
select a special favorite color schemeg:random_theme_day_start
and g:random_them_night_start
options:RandomTheme auto
, :RandomThemeFavorite auto
all:auto
, favorite:auto
for g:random_theme_start
:RandomFontZoom <size>
and :RandomFontZoomReset
Commands:RandomTheme ${schemeName}
/:RandomFavorite ${schemeName}
:RandomTheme
/ :RandomFavorite
:RandomFavorite
commandJetBrains Mono
font:RandomThemeFavorite
command:RandomColor
commandIosevka
randomTheme.vim
:RandomTheme
commandg:favorite_gui_fonts
:RandomAll
, :RandomFavorite
commandsg:random_color_schemes
to g:favorite_color_schemes
:RandomFavorite
, :RandomAll
commandsrandomColor.vim
g:random_theme_start
option