1

As the title says, I want to know how can I enable the guifg and guibg in vim colorschemes. I already wrote in my vimrc set t_Co=256, but it enables only ctermfg and ctermbg for 256 colors.

I have Ubuntu 13.04 and I'm using gnome-terminal (but I tried with terminator terminal and also doesn't work)

Thanks in advance.

  • 3
    You are using a terminal, but want gui colors...? guifg and guibg are for gvim. – demure Jun 27 '13 at 15:56
5

guifg and guibg are always only used by gvim, and ctermfg and ctermbg are what vim uses in terminals.

You can find vim plugins that will convert 'on the fly' gui colors to the closest terminal approximations (CSApprox, ColorSupport), or you can use a tool like Vim-toCterm to convert a gui color scheme into terminal one time and then use the new scheme.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.