sbl/scvim

visual code block while executing?

Opened this issue · 3 comments

K0F commented

It is not an issue, it rather suggestion or question:

I use ScVim quite often now even for live-coding performances, I was wondering if there is a chance to get the blocks of code highlighted while being executed (as in ScIde for instance)?

Maybe more Vim question…

whatever, any ideas or suggestions?

thx!

Hi @K0F, yes you are probably right that this is more of general vim question. As a suggestion, have you seen vim-highlightedyank plugin? It does what you are describing, but for text yank operations. Maybe it could be adapted to highlight the executed block/line instead?

K0F commented

Thanks @davidgranstrom, it seems to be quite close, I know that scvim needs to select a range of the bracketed block in source document.. is there any way to get this information, i.e. for this plug-in to do highlighting? Thanks

K0F commented

I see, ftplugin contains this function.. s:get_visual_selection(), this is probably the key