From 952593481ca62bc41caf8ee09b1df86db6d261ed Mon Sep 17 00:00:00 2001 From: manga_osyo Date: Fri, 17 Apr 2015 10:50:41 +0900 Subject: [PATCH] Add autocmd WinEnter. --- plugin/brightest.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/brightest.vim b/plugin/brightest.vim index 535237d..fface6e 100644 --- a/plugin/brightest.vim +++ b/plugin/brightest.vim @@ -39,8 +39,10 @@ command! -bar BrightestToggle if g:brightest_enable | BrightestDisable | else | augroup brightest autocmd! autocmd CursorMoved * call brightest#on_CursorMoved() + autocmd WinEnter * call brightest#on_CursorMoved() autocmd CursorHold * call brightest#on_CursorHold() - autocmd BufLeave,WinLeave * call brightest#hl_clear() + autocmd WinLeave * call brightest#hl_clear() +" autocmd BufLeave,WinLeave * call brightest#hl_clear() autocmd ColorScheme * call s:init_hl() autocmd CursorMovedI *