How to enable guifg and guibg in vim

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.

1

1 Answer

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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like