Armin Ronacher

MacVim without Distraction

written by Armin Ronacher, on Tuesday, January 6, 2009 1:48.

I really like editors running in full screen. So that they take up 100% of the available screen space. Not because I want to see more code, but because I don't want to see anything else that could distract me. With Spaces in OS X Leopard and MacVim I finally found a neat way that matches my workflow.

Here my three step plan for full satisfaction:

  1. Configure spaces so that MacVim always starts on the same space that is otherwise unused
  2. Put this into your ~/.vimrc:
    if has("gui_running")
      set fuoptions=maxvert,maxhorz
      au GUIEnter * set fullscreen
    endif
    
  3. Quit and restart your MacVim :)

Now every time you start your MacVim it will skip to the configured space and display itself in fullscreen mode.

Comments

  1. Note that you can also hit ⌘⇧F to toggle between fullscreen and normal mode.

    —  Anon on Saturday, January 10, 2009 17:31 #

Leave a Reply