Skip to content

Instantly share code, notes, and snippets.

@kirkconnell
Last active December 24, 2015 01:18
Show Gist options
  • Save kirkconnell/6722234 to your computer and use it in GitHub Desktop.
Save kirkconnell/6722234 to your computer and use it in GitHub Desktop.
" Color Scheme switch for linux
fu! ToggleLinuxColors()
if exists('base16colorspace') && base16colorspace == "256"
let s:base16colorspace = "mac"
else
let s:base16colorspace = 256
endif
exec "colorscheme base16-default"
endfu
@kalbasit
Copy link

" Color Scheme switch for linux
function! ToggleLinuxColors()
  if exists('base16colorspace') && base16colorspace == "256"
    let g:base16colorspace = "mac"
  else
    let g:base16colorspace = 256
  endif
  :colorscheme base16-default
endfunction

@kalbasit
Copy link

call it with

:call ToggleLinuxColors()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment