Hi - I have a project where I'd like code in vim to be coloured, with the colours changing in real time (to reflect some audio-related data being generated). For example, say the text "Merti()" represents an audio object - I'd like to be able to update the colouring of that text to reflect the current loudness of that object.
Although the incoming data is 'continuous' it'd be fine to use a predefined palette of (say) 25 colours which I could define as 25 syntax categories. The loudness data I can derive externally, that's no problem, but I'd like to know if I can efficiently achieve the rapid color changes in vim. Some questions: * Is vim's syntax highlighting efficient enough to be run many (e.g. 10) times per second? e.g. if I dynamically tweak a syntax- highlighting file from outside and force it to be re-read. * Is there a more efficient approach you could suggest, such as syntax- highlighting information coming through a pipe, or by executing commands rather than reading a file? * Is there a better way that doesn't use vim's syntax highlighting engine (e.g. directly through setting colour of text ranges)? Thanks for any suggestions - Dan -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
