You are not logged in.

#1 2018-02-07 20:40:20

CallMeGhost
Banned
Registered: 2018-02-04
Posts: 13

Vim Background Color Issue

Hello so after a few struggles i managed to remove kde and switch to xfce and I am really enjoying it. I tweaked it to my likes and everything is just perfect except a couple of things. In kde i used konsole for my terminal while in xfce there is like a terminal emulator. In konsole when i opened vim if i wanted to change its background color i'd just change the color in the vim config file and export 256 colors from xterm in bashrc but when i try to do that now it just doesnt work...and my background color is just a solid black.

Offline

#2 2018-02-08 09:24:33

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Vim Background Color Issue

Should work OK, not that I have tried it. Check out http://vim.wikia.com/wiki/256_colors_in_vim

The standard terminal in xfce4 is xfce4-terminal

Andrew

Offline

#3 2018-02-08 18:47:32

CallMeGhost
Banned
Registered: 2018-02-04
Posts: 13

Re: Vim Background Color Issue

Well it's not working for me pal hmm

Offline

#4 2018-02-08 18:57:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,447
Website

Re: Vim Background Color Issue

CallMeGhost wrote:

... and export 256 colors from xterm in bashrc but when i try to do that now it just doesnt work...

What on earth does this mean?  Please post the actual commands or contents of your configuration files.  Do you mean you are setting a TERM variable?  Don't do that.

Do you want a different background color in vim than in your terminal in general?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2018-02-08 19:09:44

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Vim Background Color Issue

Check

$ echo $TERM

It should be xterm-256color or similar
then place in ~/.vimrc

:highlight Normal ctermfg=grey ctermbg=darkblue

Vi should now be grey on a blue background

Andrew

Offline

#6 2018-02-09 14:30:44

CallMeGhost
Banned
Registered: 2018-02-04
Posts: 13

Re: Vim Background Color Issue

Never mind it was just the them...im so sorry but I have an issue with the themes now, ill create an other post for that and link you there...ty for all your guys help smile

Offline

Board footer

Powered by FluxBB