Permalink
Browse files

change colorscheme triggers redefine hightlights

  • Loading branch information...
1 parent c7d38bd commit 483d2deb3b4063be84d4f56f9d30a83ebd32249b megaannum committed Aug 19, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 autoload/forms.vim
View
@@ -139,6 +139,16 @@ endif
" Definitions: {{{2
" ------------------------------------------------------------
+function! s:ColorSchemeEvent()
+ call s:LoadeHighlights()
+endfunction
+
+augroup forms
+ autocmd ColorScheme * call s:ColorSchemeEvent()
+augroup END
+
+function! s:LoadeHighlights()
+
if &background == 'light'
if has("gui_running")
@@ -311,6 +321,9 @@ endif
endif " background
+endfunction
+
+call s:LoadeHighlights()
" ------------------------------------------------------------
" CleanupHighlights: {{{2

0 comments on commit 483d2de

Please sign in to comment.