Search code examples
linuxvimcolorsterminallinux-mint

How to set Vim to terminal's sixteen-colors?


Recently I had been able to get Vim to mirror all of my terminal's colors. Vim looked and felt how I wanted it. However, when I updated Vim last night to the latest version, 8.0.577, it stripped all of that out and gave me back the wretched color-scheme I once had.

I am running Linux Mint and use the standard terminal emulator that comes included. Is there any code I can place in my "~/.vimrc" that would make Vim mirror my terminal's sixteen-colors, thus standardizing how I use Vim in the future?


Solution

  • Interesting question, since most people have the opposite problem where they want more colours but only get the standard 16... Anyway, try this in your .vimrc or from the : prompt:

    set t_Co=16