Anand
Anand

Reputation: 10400

Using vim with all colors inside MacOS terminal

When I use MacVim, all the color schemes work and looks very rich in the window.

But when I fire up my Terminal and use Vi inside it, the color schemes look very very bad. Is there any setting/config I should set to let Terminal Vi use all the colors available by a color scheme.

Update: I use

MacOSX Lion
Terminal v2.2  with xterm-color
Vim 7.3

Thanks

Upvotes: 1

Views: 1308

Answers (3)

phildobbin
phildobbin

Reputation: 834

I'd advise trying CSApprox

On OS X especially you can get very good results for console Vim.

I use it on OS X, Debian & Fedora with good results for console Vim & Matt who wrote the plugin, is a very helpful guy & will do his best to get the best results possible for you if you run into problems.

Upvotes: 0

Derek Wyatt
Derek Wyatt

Reputation: 2717

You probably can't do this. It's not Vim's fault, it's your terminal's fault. The GUI has access to millions of colours and terminals generally have access to 256 (or much less, depending on your terminal). It just doesn't have the guts to show the same colours as the GUI version. That's also why all of the colour schemes for Vim have values for the GUI (e.g. guibg) and values for the terminal (e.g ctermbg). There's a GUI value for the powerful side, and a terminal value for the weak side.

This is one of the reasons why I only use the GUI version. You can easily marry the command line with Vim so that using a single GUI version is much easier. You can check out a video on how to do this at vimeo and I recently created a plugin for ZSH that makes it even easier, which you can get from Github

Upvotes: 4

jaume
jaume

Reputation: 267

If configure your .vimrc with the command

set t_Co=256

you are configuring vim to allow colorschemes that use 256 colors. Maybe MacVim uses this configuration by default.

Upvotes: 0

Related Questions