Skip to content

Instantly share code, notes, and snippets.

@kosugi
Created December 8, 2013 15:22
Show Gist options
  • Select an option

  • Save kosugi/7858877 to your computer and use it in GitHub Desktop.

Select an option

Save kosugi/7858877 to your computer and use it in GitHub Desktop.
function! transparency#Shift(ofs)
let l:l = &g:transparency
if type(l:l) != 0
let l:l = 0
endif
let l:l += a:ofs
if l:l < 0
let l:l = 0
endif
if 80 < l:l
let l:l = 80
endif
let &g:transparency = l:l
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment