vim-markdown-composer icon indicating copy to clipboard operation
vim-markdown-composer copied to clipboard

[Feature Request] Synchronize Document Position in Preview with Vim Buffer

Open Cutuchiqueno opened this issue 8 years ago • 2 comments

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

Cutuchiqueno avatar Jun 07 '17 21:06 Cutuchiqueno

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.

max-baz avatar Jan 28 '18 23:01 max-baz

Any updates on this?

RaafatTurki avatar Sep 20 '22 16:09 RaafatTurki