edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Feature Request: Make it easier to tell focus on MacVim #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be very nice to more easily see whether a MacVim window is in focus 
(active) or not.  
Most OS X Leopard programs change the shade of gray they use (i.e. for 
toolbars, etc), but since 
MacVim doesn't have much of a toolbar (or at least one that many people seem to 
not use much), 
it would be nice if the transparency of the background (or something similar) 
could change when 
not in focus.  I typically have a bunch of terminal windows open at the same 
time, and have often 
found myself typing strings like :wjjea into the terminal window by mistake.

What steps will reproduce the problem?

Keep a couple of MacVim windows open along with several Terminals.  Using 
multiple screens 
increases the chances of having a problem.

What is the expected output? What do you see instead?

More difference between when the MacVim window has keyboard focus and when it 
doesn't.  
There is typically little difference -- what does change isn't visible enough.

What version of MacVim are you using (check the "MacVim->About MacVim" menu 
item)?

Version 7.2 stable 1.2 (33.3)

On which processor and version of OS X (check the "Apple Menu->About This Mac" 
menu item)?

2.16 GHz Intel Core Duo
Mac OS X Version 10.5.5

Original issue reported on code.google.com by benjamin...@gmail.com on 10 Dec 2008 at 6:37

GoogleCodeExporter commented 9 years ago
Try adding the following two lines to your .gvimrc file:

au FocusLost * set transp=50
au FocusGained * set transp=0

That will give you 50% transparency when a window is unfocused and when the 
window gains focus it is fully 
opaque again.

Is that good enough?

Original comment by bjorn.winckler@gmail.com on 11 Dec 2008 at 5:08

GoogleCodeExporter commented 9 years ago
That's great!  I didn't know that was able to be configured. Where would I look 
to see more options to set?  I 
haven't been able to find much in the help or via Google. 

Original comment by benjamin...@gmail.com on 11 Dec 2008 at 9:05

GoogleCodeExporter commented 9 years ago
`:h macvim-options` shows the options specific to MacVim. `:h options` shows 
all options available in vim. 
You can also choose Edit->Settings Window to see an interactive list. `:h 
:autocmd` explains autocommands.

Original comment by nicotha...@gmail.com on 12 Dec 2008 at 6:14

GoogleCodeExporter commented 9 years ago
Can be closed.

Original comment by nicotha...@gmail.com on 3 Jan 2009 at 6:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by bjorn.winckler@gmail.com on 3 Jan 2009 at 11:56