Skip to main content

Vim: Transparency in MacVim


Wahoo! MacVim now supports transparency. Finally, I can have a nice, transparent Vim window to match my transparent terminal, and I don't have to give up all the modern conveniences. If you use the "Homebrew" profile for your Terminal.app, try putting the following in your .gvimrc:
colorscheme torte
set transparency=15

Comments

josh said…
thank you, since changing from Ubuntu to Mac at work, I have been using vim (interminal) because I could not have a transparent background in MacVim (or so I thought!)
You have mad my life just a little easier.
Daniel said…
Tried in both .vimrc & .gvimrc

All it does is fades the background color (making it more opaque to white)
Are you using MacVim?
Anonymous said…
Yeah I can't get the background to be transparent either (and yes, using MacVim (on Lion))
I'm sorry to hear that. Unfortunately, I don't currently have a Mac, so I can't help debug this. It might be worth a bit of googling.
Alex Blackie said…
I'm also on Lion, and didn't notice any transparency, but I think I've found the problem. The window itself isn't transparent, but the buffers are...

Observe: http://cl.ly/9rXo

You can see the other buffer in the background. So I guess, in Lion, transparency doesn't work properly...
Don Smith said…
It will work if you turn on the experimental renderer (MacVim preferences -> Advanced tab). Via: http://code.google.com/p/macvim/issues/detail?id=278
Anonymous said…
Don Smith, thank you so much. Almost went back to terminal vim because of no transparency.
Omar Mendoza said…
Thanks for this, first not work, but after make the two files in ~/.vimrc and ~/.gvimrc the two files with the same content, now, works very well, thanks a lot !!!