From 1f53ac5d17af5e15fdbb32219a8bad538a61abfb Mon Sep 17 00:00:00 2001 From: Hyeon Kim Date: Sat, 9 May 2020 16:14:37 +0900 Subject: [PATCH] Make `__Mundo__`, `__Mundo_Preview__` fired earlier We used `BufNewFile` in long time ago and changed it into `BufEnter` intensionally. But someone wanted it to be executed little bit earlier. So I hereby made `__Mundo__`, `__Mundo_Preview__` be executed at both `BufNewFile` and `BufEnter`. References: https://github.com/simnalamburt/vim-mundo/pull/74 https://github.com/simnalamburt/vim-mundo/issues/92 --- autoload/mundo.vim | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/autoload/mundo.vim b/autoload/mundo.vim index 840c080..f130eac 100644 --- a/autoload/mundo.vim +++ b/autoload/mundo.vim @@ -546,8 +546,16 @@ augroup MundoAug \ call s:MundoRenderPreview() | \ call s:MundoStopRefreshTimer() | \ endif | - autocmd BufEnter __Mundo__ call s:MundoSettingsGraph() - autocmd BufEnter __Mundo_Preview__ call s:MundoSettingsPreview() + + " Re-applying syntax highlights and remapping keymaps at both BufNewFile and + " BufEnter. See references for the further details + " + " References: + " https://github.com/simnalamburt/vim-mundo/pull/74 + " https://github.com/simnalamburt/vim-mundo/issues/92 + autocmd BufNewFile,BufEnter __Mundo__ call s:MundoSettingsGraph() + autocmd BufNewFile,BufEnter __Mundo_Preview__ call s:MundoSettingsPreview() + autocmd CursorHold,CursorMoved,TextChanged,InsertLeave * \ call s:MundoRefresh() augroup END