On Thursday, August 30, 2012 2:50:18 AM UTC-5, N David Brown wrote:
> I'm a professional programmer so that's entirely feasible, thank you for letting me know.
>
> I haven't looked into how to accomplish the task, it would be a waste of effort were there an existing plugin. All I've done is search for such a plugin, found nothing, then consulted this mailing list as a final check.
>
I alluded to it without making it explicit, but while you can make Vim do pretty much anything by modifying the source, I think you'll have better luck using regular syntax highlighting commands to accomplish what you want in the command-line window instead of the command-line itself. The command-line window is a special buffer but you can give it filetype and syntax just like any other buffer. I think by default it gets the normal "vim" filetype and syntax applied, but you could readily change this. You could then use whatever syntax file you come up with to highlight vim scripts in files as well as when typed as commands.
Doing it with a syntax file applied to the command-window, you get the added bonus of being able to share your work with others who don't want to apply your patch to Vim, and additionally you don't risk the need to update your patch with every new upstream version of Vim.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment