Skip to content

Instantly share code, notes, and snippets.

@pocket7878
Created June 28, 2011 12:46
Show Gist options
  • Save pocket7878/1051063 to your computer and use it in GitHub Desktop.
Save pocket7878/1051063 to your computer and use it in GitHub Desktop.
little-patch-for unite-colorscheme
*** colorscheme.vim.orig 2011-06-28 21:43:56.000000000 +0900
--- colorscheme.vim 2011-06-28 21:44:41.000000000 +0900
***************
*** 8,14 ****
\ }
function! s:unite_source.hooks.on_init(args, context)
! let s:beforecolor = g:colors_name
endfunction
function! s:unite_source.hooks.on_close(args, context)
--- 8,18 ----
\ }
function! s:unite_source.hooks.on_init(args, context)
! if exists('g:colors_name')
! let s:beforecolor = g:colors_name
! else
! let s:beforecolor = "default"
! endif
endfunction
function! s:unite_source.hooks.on_close(args, context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment