Skip to content

Instantly share code, notes, and snippets.

@caifara
Created August 27, 2011 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caifara/1175244 to your computer and use it in GitHub Desktop.
Save caifara/1175244 to your computer and use it in GitHub Desktop.
fu! ToggleFullScreen()
if &fullscreen == 1
set guioptions+=e
else
set guioptions-=e
endif
set invfu
endfu
if has("gui_macvim")
macmenu Window.Toggle\ Full\ Screen\ Mode key=<nop>
map <D-Enter> :call ToggleFullScreen()<CR>
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment