Skip to content

Instantly share code, notes, and snippets.

@spetschu
Created June 5, 2010 21:46
Show Gist options
  • Save spetschu/427030 to your computer and use it in GitHub Desktop.
Save spetschu/427030 to your computer and use it in GitHub Desktop.
"Full screen mode for MacVim
"=======================
" To run MacVim in this mode from the commandline, put this whole thing into a file focus.vim and type:
"
" > mvim -S focus.vim
"
" Original tweaked from http://www.chendry.org/2009/04/22/writeroom-vim-style.html
set lines=40
set columns=80
"set guifont=Monaco:h16
set guifont=DroidSansMono:h16
set guioptions-=r "remove right-hand scroll bar
hi NonText guifg=bg " hides the ~'s
" fullscreen options
set fuoptions=background:#00000000
set fu
"colorscheme slate
colorscheme murphy
hi Normal guifg=green
"hi Normal guifg=grey
" wrap words like you'd expect
set formatoptions=1
set lbr
" make k and j navigate display lines
map k gk
map j gj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment