vim-markdown-composer
vim-markdown-composer copied to clipboard
[Feature Request] Synchronize Document Position in Preview with Vim Buffer
A killer feature would be to have vim-markdown-composer moving the html preview to the same position in the document where the current cursorline in vim is. Especially in long documents or when you move a lot up and down it is cumbersome always look out for the current position within the preview.
For a showcase: the atom markdown preview works this way and I found another vim plugin that does so (but does not support pandoc markdown): https://github.com/iamcco/markdown-preview.vim
Wow this is a cool idea!
The approach that iamcco/markdown-preview.vim took is quite neat: they place an invisible element in the document at the location of the cursor, and then on every refresh they look for this invisible element and scroll to it.
Any updates on this?