Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make __Mundo__, __Mundo_Preview__ fired earlier #96

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions autoload/mundo.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down