scvim icon indicating copy to clipboard operation
scvim copied to clipboard

visual code block while executing?

Open K0F opened this issue 9 years ago • 3 comments

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!

K0F avatar Feb 04 '17 13:02 K0F

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?

davidgranstrom avatar Feb 05 '17 12:02 davidgranstrom

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 avatar Feb 05 '17 13:02 K0F

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

K0F avatar Feb 05 '17 13:02 K0F