> For the complete documentation index, see [llms.txt](https://imarslo.gitbook.io/handbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://imarslo.gitbook.io/handbook/vim/color.md).

# color

* [transparent background](#transparent-background)
* [linux terminal with solarized](#linux-terminal-with-solarized)

> \[!NOTE|label:references:]
>
> * [\* vimcolorschemes](https://vimcolorschemes.com/)
> * [Using GUI color settings in a terminal](https://vim.fandom.com/wiki/Using_GUI_color_settings_in_a_terminal)
> * [Using vim color schemes with Putty](https://vim.fandom.com/wiki/Using_vim_color_schemes_with_Putty)
> * [rgb.txt: color with name](http://fugal.net/vim/rgbtxt.html) | [rgb.txt with RGB format](https://github.com/marslo/MarsloVimOthers/blob/master/AboutGvimColors/rgb/rgb.txt)
> * [Xterm256 color names for console Vim](https://vim.fandom.com/wiki/Xterm256_color_names_for_console_Vim)
> * [Highlight multiple words](https://vim.fandom.com/wiki/Highlight_multiple_words)

### transparent background

> \[!NOTE|label:references:]
>
> * [#375 - Transparent background not working.](https://github.com/morhetz/gruvbox/issues/375)
> * [#287 - Transparent background, cursor\_column background and selection background options](https://github.com/morhetz/gruvbox/pull/287)

```vim
augroup TransparentBackground
  autocmd VimEnter * hi Normal ctermbg=NONE guibg=NONE
augroup END

" or
hi Normal     guibg=NONE ctermbg=NONE
hi NonText    guibg=NONE ctermbg=NONE  " non-text transparent ( optional )
hi LineNr     guibg=NONE ctermbg=NONE  " line number transparent
hi SignColumn guibg=NONE ctermbg=NONE  " sign column transparent
```

![vim/nvim transparent background](/files/NnTSCjBV4Jr9UsUt79sp)

### linux terminal with solarized

* bundle

  ```vim
  " Vim Bundle
  filetype off
  set rtp+=~/.vim/bundle/snipmate.vim/snippets/
  set rtp+=~/.vim/bundle/Vundle.vim/
  call vundle#begin()

  Bundle 'VundleVim/Vundle.vim'
  Bundle 'tpope/vim-pathogen'
  Bundle 'altercation/vim-colors-solarized'

  call vundle#end()
  call pathogen#infect()
  filetype plugin indent on
  syntax enable on
  ```
* solarized

  ```vim
  if has('gui_running') || 'xterm-256color' == $TERM
    set background=dark
    let psc_style='cool'

    """ solarized
    let &t_Co=256
    set t_Co=256
    let g:solarized_termcolors = 256
    let g:solarized_termtrans  = 1

    let g:solarized_extra_hi_groups = 1        " ┐
    let g:solarized_visibility      = "high"   " | nice to have
    let g:solarized_contrast        = "high"   " |
    let s:base03                    = "255"    " ┘

    " set termguicolors                        " do not enable

    colorscheme solarized
  endif
  ```
* customrized colors

  ```vim
  highlight clear SpellBad Conceal PmenuSel SpecialKey Exception Folded TabLineSel Search CorsorLine
  highlight SpellBad       term=underline   cterm=underline     ctermbg=NONE    ctermfg=160
  highlight Conceal        term=NONE        cterm=NONE          ctermbg=NONE    ctermfg=239
  highlight SpecialKey     term=NONE        cterm=NONE          ctermfg=130
  highlight Constant       term=NONE        ctermfg=99
  highlight LineNr         term=NONE        ctermbg=NONE        ctermfg=235     guifg=#586e75
  highlight CursorLineNr   term=underline   cterm=NONE          ctermbg=NONE    ctermfg=124
  highlight CursorLine     term=NONE        cterm=NONE          ctermbg=NONE    ctermfg=NONE
  highlight Exception      term=bold        ctermbg=NONE        ctermfg=136
  highlight Visual         term=NONE        cterm=underline     ctermbg=NONE
  highlight Comment        ctermfg=234      guifg=#002b36
  highlight Folded         term=underline   cterm=underline     ctermfg=235     ctermbg=0
  highlight FoldColumn     term=NONE        cterm=NONE          ctermfg=235     ctermbg=0
  highlight StatusLineNC   term=NONE        cterm=NONE          ctermfg=235     ctermbg=black
  highlight StatusLine     cterm=NONE       ctermfg=238         ctermbg=black
  highlight CmdLineEnter   cterm=NONE       ctermfg=238
  highlight CmdLineLeave   cterm=NONE       ctermfg=238
  highlight MsgArea        cterm=NONE       ctermfg=238
  highlight vimGroup       term=NONE        cterm=NONE          ctermfg=4
  highlight NonText        cterm=NONE       ctermfg=239
  highlight Pmenu          term=NONE        cterm=NONE          ctermfg=2       ctermbg=NONE
  highlight PmenuSel       term=NONE        cterm=NONE          ctermfg=121     ctermbg=NONE
  highlight PmenuSbar      term=NONE        cterm=NONE          ctermfg=15      ctermbg=234
  highlight PmenuThumb     term=NONE        cterm=NONE          ctermfg=15      ctermbg=234
  highlight TabLineSel     term=underline   cterm=underline     ctermbg=NONE
  highlight VertSplit      cterm=NONE       ctermfg=12          ctermbg=NONE
  highlight MatchParen     term=inverse     cterm=inverse
  highlight Search         term=NONE        cterm=NONE          ctermbg=12      ctermfg=4
  highlight Statement      term=NONE        cterm=NONE          ctermfg=11      ctermbg=NONE
  highlight Type           term=NONE        cterm=NONE          ctermfg=136     ctermbg=NONE
  highlight Visual         term=bold,underline   cterm=bold,underline     ctermfg=NONE    ctermbg=NONE

  highlight Normal         ctermfg=23        guifg=#586e75
  highlight Boolean        ctermfg=196
  highlight Number         ctermfg=61
  highlight String         ctermfg=88
  highlight Function       ctermfg=105
  highlight Structure      ctermfg=202
  highlight Define         ctermfg=179
  highlight Conditional    ctermfg=190
  highlight Operator       ctermfg=208

  highlight PreProc        term=NONE        cterm=NONE          ctermfg=166     ctermbg=NONE
  highlight ColorColumn    cterm=NONE       ctermfg=244         ctermbg=NONE
  highlight CollumnLimit   cterm=NONE       ctermfg=244         ctermbg=NONE
  highlight VertSplit      ctermfg=235      gui=reverse
  highlight IncSearch      term=standout    cterm=standout      ctermfg=148     ctermbg=238
  highlight Search         cterm=NONE       ctermfg=64          ctermbg=238     guifg=Black     guibg=Yellow
  ```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://imarslo.gitbook.io/handbook/vim/color.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
