1

I'm trying to setup 256 color mode at work for my Vim setup and it just refuses to work correctly. I'm using Konsole as my terminal emulator and my shell type is tcsh. I found a perl script named 256colors2.pl and ran it to see where I was currently at. My results looked like, where the line on the bottom of the white box under system colors flickers:

enter image description here

So then I followed the guide on the vim wiki to setup 256 colors for csh shells. The wiki says to set your TERM environment variable to "xterm-256color". After doing that, I still get the same results back from the 256colors2.pl script and now vim does this thing where lines appear all over the screen and flicker every second or so:

enter image description here

I'm at a loss now. I can find nothing else online that looks like my issue. Is there anyway to get 256 color mode working so I can use some sort of theme for vim?

4
  • It might be worth mentioning what terminal emulator you're using.
    – 8bittree
    Commented Aug 28, 2015 at 18:56
  • Done. I'm using Konsole.
    – Sean K
    Commented Aug 28, 2015 at 18:58
  • You don't need 256 colors to get syntax highlighting, the default 8 or 16 are enough. 256 colors gives you more bang for your bucks, though.
    – romainl
    Commented Aug 29, 2015 at 7:42
  • The perl script doesn't care what TERM is set to. If it fails (as described in the question), your terminal simply doesn't support that configuration. Commented Nov 26, 2017 at 1:09

1 Answer 1

0

In the Settings menu, choose the profile to edit, then press the Edit… button highlighted in the screenshot and add these lines:

TERM=xterm-256color
COLORTERM=1

Konsole

(from my colorscheme's wiki)

2
  • I don't think COLORTERM is used by anyone nowadays. But of course you definitely need TERM=xterm-256color.
    – egmont
    Commented Sep 12, 2015 at 23:16
  • At least I needed it when I took that screenshot.
    – romainl
    Commented Sep 12, 2015 at 23:30

You must log in to answer this question.

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