Skip to content

Commit

Permalink
Make __Mundo__, __Mundo_Preview__ fired earlier
Browse files Browse the repository at this point in the history
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
  • Loading branch information
simnalamburt committed May 9, 2020
1 parent 046fc06 commit 9653408
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions autoload/mundo.vim
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,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
Expand Down

0 comments on commit 9653408

Please sign in to comment.