vim-gruvbit icon indicating copy to clipboard operation
vim-gruvbit copied to clipboard

Refined gruvbox vim colorscheme

= GRUVBIT: vim colorscheme :experimental: :icons: font :autofit-option: :!source-linenums-option: :imagesdir: images

  • Built using awesome https://github.com/lifepillar/vim-colortemplate[Toolkit for Vim Color Scheme Designers!]
  • Based on gruvbox hard dark background.
  • Mapping to syntax elements are different to gruvbox. Less reddish, more yellowish.
  • Some colors were slightly changed too.
  • No syntax with bold or italic, except Title and Directory are bold.
  • Do you want white background? Check link:https://github.com/habamax/vim-polar[polar].
  • Do you want light background? Check link:https://github.com/habamax/vim-psionic[psionic].
  • Do you like black background? Check link:https://github.com/habamax/vim-habanight[habanight].
  • Do you like https://github.com/romainl/Apprentice[Apprentice]? Check link:https://github.com/habamax/vim-alchemist[alchemist].

== More than 1000 words

image::https://user-images.githubusercontent.com/234774/94785710-b4702600-03d8-11eb-8eb2-5639ec830d22.png[] image::https://user-images.githubusercontent.com/234774/94784923-8b9b6100-03d7-11eb-8ff1-54984cbc9481.png[] image::https://user-images.githubusercontent.com/234774/94785825-dc5f8980-03d8-11eb-918c-e8ae68f6b3c7.png[] image::https://user-images.githubusercontent.com/234774/94785938-0618b080-03d9-11eb-80aa-641711631c23.png[] image::https://user-images.githubusercontent.com/234774/94786982-547a7f00-03da-11eb-985a-f0042b1f79e2.png[] image::https://user-images.githubusercontent.com/234774/94787088-7e33a600-03da-11eb-88c1-8b65ee32a5d3.png[]

NOTE: Comments are not italic by default. Use <<italic, setup instructions>> to make them italic if you need it.

== Installation

Using plugin manager:: Follow your plugin manager documentation, for example, link:https://github.com/junegunn/vim-plug[vim-plug] does it this way: + [source,vim]

" Specify a directory for plugins call plug#begin('~/.vim/plugged')

Plug 'habamax/vim-gruvbit'

" ... other plugins ...

" Initialize plugin system call plug#end()

set termguicolors colorscheme gruvbit

Manual with git:: Clone this repo to your vim/nvim packages directory: + .Vim on Linux or OSX [source,sh]

git clone https://github.com/habamax/vim-gruvbit ~/.vim/pack/plugins/start/vim-gruvbit

.Neovim on Linux or OSX [source,sh]

git clone https://github.com/habamax/vim-gruvbit ~/.config/nvim/pack/plugins/start/vim-gruvbit

.Vim on Windows [source,sh]

git clone https://github.com/habamax/vim-gruvbit C:/Users/USERNAME/vimfiles/pack/plugins/start/vim-gruvbit <.>

.Neovim on Windows [source,sh]

git clone https://github.com/habamax/vim-gruvbit C:/Users/USERNAME/AppData/Local/nvim/pack/plugins/start/vim-gruvbit <.>

<.> Change USERNAME to your user name

Manual:: * Download zip archive (available in menu:Code[Download ZIP]) * Extract colors/gruvbit.vim file into your vim/nvim settings directory ** ~/.vim/colors/gruvbit.vim -- vim (linux, osx) ** ~/vimfiles/colors/gruvbit.vim -- vim (windows) ** ~/.config/nvim/colors/gruvbit.vim -- neovim (linux, osx) ** ~/AppData/Local/nvim/colors/gruvbit.vim -- neovim (windows)

add to your settings:

[source,vim]

set termguicolors colorscheme gruvbit

[[italic]] == Looks good but I want italic comments

Add following to your settings file:

[source,vim]

augroup colorscheme_change | au! au ColorScheme gruvbit hi Comment gui=italic cterm=italic augroup END

set termguicolors colorscheme gruvbit


== And bold statements

Add following to your settings file:

[source,vim]

func! s:gruvbit_setup() abort hi Comment gui=italic cterm=italic hi Statement gui=bold cterm=bold endfunc

augroup colorscheme_change | au! au ColorScheme gruvbit call s:gruvbit_setup() augroup END

set termguicolors colorscheme gruvbit


== And VertSplit without background colors

[source,vim]

func! s:gruvbit_setup() abort hi Comment gui=italic cterm=italic hi Statement gui=bold cterm=bold hi VertSplit guibg=NONE ctermbg=NONE endfunc

augroup colorscheme_change | au! au ColorScheme gruvbit call s:gruvbit_setup() augroup END

set termguicolors colorscheme gruvbit


== What about terminals with semi-transparent backgrounds?

Add this:

[source,vim]

let g:gruvbit_transp_bg = v:true

image::https://user-images.githubusercontent.com/234774/94787703-50029600-03db-11eb-9746-3202af256060.png[]

== Statusline Plugins Integration

Gruvbit supports https://github.com/vim-airline/vim-airline[vim-airline]:

image::https://user-images.githubusercontent.com/234774/94784376-bd5ff800-03d6-11eb-990b-3a4634615eb5.png[]

and https://github.com/itchyny/lightline.vim[lightline.vim]:

image::https://user-images.githubusercontent.com/234774/94784542-fa2bef00-03d6-11eb-8131-153e8cbce7c8.png[]

Note though, it wouldn't work if you install gruvbit into /opt/ directory of vim packages.

For vim-airline you don't need to do anything special it should automatically pickup gruvbit theme.

For lightline.vim add following to your vimrc:

[source,vim]

let g:lightline = {"colorscheme": "gruvbit"}