Created
February 28, 2010 18:47
-
-
Save skammer/317730 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Toggles fullscreen for current window. | |
" Works exclusively on macvim http://code.google.com/p/macvim/ | |
fu! ToggleFullscreen() | |
if &go == "amge" | |
exec 'set go='."amg" | |
let g:old_lines=&lines | |
let g:old_columns=&columns | |
set lines=9999 | |
set columns=9999 | |
set invfullscreen | |
else | |
exec 'set go='."amge" | |
exec 'set columns='.g:old_columns | |
exec 'set lines='.g:old_lines | |
exec 'set invfullscreen' | |
endif | |
endf | |
imap <D-D> <Esc>:call ToggleFullscreen()<cr>a | |
vmap <D-D> ms:call ToggleFullscreen()<cr> | |
nmap <D-D> V<D-D> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment