Closed Cyperwu closed 3 years ago
Interesting indeed, I will look into it @Cyperwu, cheers for the report :+1:
I looked into it a bit and found out it was related to auto-update being executed outside of markdown context. auto-update is triggered because of the let g:mkdx#settings = {...}
statement in your .vimrc file which, when re-sourced actually applies a deep-merge of new settings over old ones. This in turn executes code to update [markdown] buffers directly for specific settings such as enabling / disabling folding or highlighting.
A bit more difficult is finding the root cause since auto-update does not perform any key mapping, but after preventing its execution the issue no longer occurs :thinking:
In any case can you confirm if this fixes the issue @Cyperwu?
Fixed, thank you for your effort! Closing...
OS type:
Vim:
Vim version:
NVIM v0.5.0-nightly Build type: Release LuaJIT 2.0.5
minimal vimrc using
vim-plug
:Reproduce steps:
source %
:map o