Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

When I Open certain apss (such as MacVim) I don't need the toolbar. So is there a way to make the app know this and always open in with the toolbar hidden (eg. as you would do by pressing the bean shaped button on the upper right)?

share|improve this question
2  
Not sure about all applications, but with MacVim specifically you can add this to your ~/.vimrc: set guioptions-=T –  michaelmichael May 10 '11 at 20:18
    
ok, I only need it for macvim for now so make this an answer and I'll accept. –  romeovs May 11 '11 at 8:56

3 Answers 3

up vote 2 down vote accepted

Add this to your ~/.vimrc to auto-minimize the toolbar in MacVim:

set guioption-=T    "hide toolbar
share|improve this answer

If you collapse the toolbar on any application, it should remain shrunk across any invocation. I've collapsed the toolbar in Coda, which hides the Category (Sites, Edit, Preview, etc.) navigation, and I've never seen it since.

If this doesn't work in an application you use, I suggest something is configuring the application1 to re-expand it, otherwise I consider this a bug in the application. You should do your due diligence to get in touch with the developer and talk to them about it.


1 The toolbar in MacVim could come back due to reading in configuration files. e.g. /usr/share/vim/vimrc, ~/.vimrc, or more specifically because the default in the app is written to expand it explicitly if not otherwise defined. Either way, @michaelmichael is correct in specific regards to MacVim.

share|improve this answer

Obviously this wasn't a solution at the time you asked the question, but in Lion, you can select "Restore windows when quitting and re-opening apps" and state will be preserved.

share|improve this answer
    
He didn't ask about windows as a whole, but more about Window State. I suspect MacVim is a bit of an edge case in this situation too. –  Jason Salaz Aug 30 '11 at 5:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.