|
|
преди 1 година | |
|---|---|---|
| .. | ||
| alacritty | преди 1 година | |
| autoload | преди 1 година | |
| colors | преди 1 година | |
| doc | преди 1 година | |
| kitty | преди 1 година | |
| templates | преди 1 година | |
| tilix | преди 1 година | |
| xresources | преди 1 година | |
| zsh | преди 1 година | |
| Anti-996-LICENSE | преди 1 година | |
| LICENSE | преди 1 година | |
| README.md | преди 1 година | |
Take vim-plug for example:
Plug 'sainnhe/vim-color-vanilla-cake'
For better syntax highlighting support, please install sheerun/vim-polyglot.
/path/to/vim-color-vanilla-cake/colors/vanilla-cake.vim to ~/.vim/colors/vanilla-cake.vim/path/to/vim-color-vanilla-cake/autoload/lightline/colorscheme/vanilla_cake.vim to ~/.vim/autoload/lightline/colorscheme/vanilla_cake.vimPut this in your vimrc:
set termguicolors
colorscheme vanilla-cake
If you want to apply this color scheme temporarily, run these commands in vim:
:set termguicolors
:colorscheme vanilla-cake
To enable lightline color scheme, put this in your vimrc
let g:lightline = {}
let g:lightline.colorscheme = 'vanilla_cake'
" or this line
let g:lightline = {'colorscheme' : 'vanilla_cake'}
To apply it without reloading:
:let g:lightline.colorscheme = 'vanilla_cake'
:call lightline#init()
:call lightline#colorscheme()
:call lightline#update()
Check this gist.
Q: It doesn't work as expected.
A:
This color scheme is designed for true colors, set termguicolors is required. Check output of vim --version, maybe your vim doesn't support termguicolors
Maybe your terminal emulator doesn't support true colors, you can test it using this script
If you are running vim in tmux, you need to override default true colors of tmux, as tmux cannot display true color properly: #1246 How to use true colors in vim under tmux?
There are many highlighting group links in syntax files while a color scheme may change them, enabling one color scheme based on another color scheme enabled is very likely to cause color broken. If there is any color broken, you can enable the color scheme in your vimrc instead of after vim startup.
Q: What's your status line configuration?
A: check this gist.
Check this gist for detailed instructions to hack this color scheme: hack-color-schemes.md