Skip to content

Instantly share code, notes, and snippets.

@carlosgaldino
Created October 8, 2011 21:19
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 carlosgaldino/1272896 to your computer and use it in GitHub Desktop.
Save carlosgaldino/1272896 to your computer and use it in GitHub Desktop.
set fuoptions=maxvert
function ToggleFullScreen()
if exists("s:old_columns")
set columns=s:old_columns
set nofu
unlet s:old_columns
else
let s:old_columns=&columns
set columns=84 fu
endif
endfunction
map <Leader>fu :call ToggleFullScreen()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment