6

why is it that the colors when using the color scheme 'blackboard' via Vim in gnome terminal is not the same as when I use the same theme in gVim? i.e. the background is black while on gVim it's blue and the function names are not colroed etc. Only a few parts of teh code are colored.

Here's my .vimrc

filetype plugin indent on
set number
let &t_Co=256

Also on my Profile Preferences > Colors tab, I got: Bulit-in Schemes: Green on Black Built-in schemes: XTerm

3 Answers 3

4

Take a look at CSApprox - very good at matching colourschemes (in linux at least - in OSX the default terminal does not have enough colours)

Fairly simple to set up - just configure how many colours are usable by your terminal and put the needed information in your .vimrc

0
3

Vim running in a terminal emulator uses so-called ANSI codes to display color. gVim doesn't relay on terminal emulation, and can use any RGB color it likes.

In the color scheme declaration that's guifg & guibg entries for gVim, and ctermfg & ctermbg entries for terminal emulators. See

:help syntax

for more details about differences between syntax highlighting between vim working inside a terminal emulator and as a standalone GUI program.

2
  • So is there a solution for it?
    – user22727
    Jan 3, 2010 at 16:35
  • Sure. Edit either the mapping from ANSI colors to RGB in your terminal emulator to match the colors that gVim uses, or edit the definition of the color scheme for gVim to match RGB values that your terminal emulator uses. Jan 3, 2010 at 17:33
2

Take a look at this vim tips wiki page were two solutions for making consistent colorschemes between terminals and GUI are discussed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .