Skip to content

Commit 1f53ac5

Browse files
committed
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: #74 #92
1 parent 2ceda8c commit 1f53ac5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

autoload/mundo.vim

+10-2
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,16 @@ augroup MundoAug
546546
\ call s:MundoRenderPreview() |
547547
\ call s:MundoStopRefreshTimer() |
548548
\ endif |
549-
autocmd BufEnter __Mundo__ call s:MundoSettingsGraph()
550-
autocmd BufEnter __Mundo_Preview__ call s:MundoSettingsPreview()
549+
550+
" Re-applying syntax highlights and remapping keymaps at both BufNewFile and
551+
" BufEnter. See references for the further details
552+
"
553+
" References:
554+
" https://github.com/simnalamburt/vim-mundo/pull/74
555+
" https://github.com/simnalamburt/vim-mundo/issues/92
556+
autocmd BufNewFile,BufEnter __Mundo__ call s:MundoSettingsGraph()
557+
autocmd BufNewFile,BufEnter __Mundo_Preview__ call s:MundoSettingsPreview()
558+
551559
autocmd CursorHold,CursorMoved,TextChanged,InsertLeave *
552560
\ call s:MundoRefresh()
553561
augroup END

0 commit comments

Comments
 (0)