Tuesday, August 31, 2010

Coding without distraction: MacVim fullscreen

After wrestling with iTerm slowness with certain fonts, I made the switch from vim in iTerm to MacVim for coding. Here's a small .gvimrc that cleans up fullscreen mode. Try it out and let me know what you think.

if has("gui_macvim")
  " looks a little better fullscreen
  set bg=dark

  " remove scroll bars and tool bar
  set guioptions-=r
  set guioptions-=L
  set guioptions-=T

  " nice font if you have it
  set guifont=Anonymous\ Pro:h14

  " expand width in fullscreen
  set fuoptions=maxvert,maxhorz

  " hide tab bar
  set showtabline=0

  " change key bindings
  macm Window.Select\ Previous\ Tab key=<D-Left>
  macm Window.Select\ Next\ Tab key=<D-Right>
  macm Window.Toggle\ Full\ Screen\ Mode key=<D-Return>

No comments:

Post a Comment