96

GitHub - sainnhe/vim-color-forest-night: ? Comfortable & Pleasant VIM Color...

 4 years ago
source link: https://github.com/sainnhe/vim-color-forest-night
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

?????? ?????

Installation

Suppose you are using vim-plug:

Plug 'sainnhe/vim-color-forest-night'

For better syntax highlighting support, please install sheerun/polyglot.

Usage

colorscheme forest-night

To enable lightline color scheme, put this in your vimrc

let g:lightline.colorscheme = 'forest_night'

or if you want to apply it without reload

:let g:lightline.colorscheme = 'forest_night'
:call lightline#init()
:call lightline#colorscheme()
:call lightline#update()

FAQ

Q: It doesn't work as expected.

A:

  1. Although this color scheme works very well without termguicolors, if you want to make it look the same as the screenshot, you need to enable it: :set termguicolors

  2. If the color still cannot displayed properly, check output of vim --version, maybe your vim doesn't support termguicolors

  3. Maybe your terminal emulator doesn't support true color, you can test it using this script

  4. If you are running vim in tmux, you need to override default true color of tmux, as tmux cannot display true color properly: #1246 How to use true colors in vim under tmux?

  5. 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 this color scheme in your vimrc instead of after vim startup.

Q: What's your status line configuration?

A: check this gist.

Contribution

This color scheme is generated by lifepillar/vim-colortemplate. To hack it, install this plugin and edit ./templates/forest_night.colortemplate, then rebuild the color scheme.

Inspirations

rhysd/vim-color-spring-night

KKPMW/sacredforest-vim


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK