mate-terminal + VIM + 256 colors

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
spitzanator

mate-terminal + VIM + 256 colors

Post by spitzanator »

My Lord! For the life of me, I can't get VIM to use my native color scheme (desert) in mate-terminal.

I followed a couple of tutorials online that involve installing ncurses-term (which is supposed to provide /usr/share/terminfo/x/xterm-256color but doesn't). Nothing I've done has worked! The color scheme works flawlessly if I run xterm manually, but relative to mate-terminal, xterm is kinda garbage and I'd prefer not to use it.

Here's the meat of my bashrc: https://github.com/mattspitz/dotfiles/b ... bashrc_inc
And here's my vimrc: https://github.com/mattspitz/dotfiles/b ... ter/.vimrc

Any advice? Thanks!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sythe100

Re: mate-terminal + VIM + 256 colors

Post by sythe100 »

Add the following line to your .bashrc:

TERM=xterm-256color

Logout and then log back in.
Then, type 'tput colors' into your terminal. The output should be 256, and at that point your vim colorschemes should all work just fine.

Good luck.
Locked

Return to “Software & Applications”