> I am wondering how one might go about adding keywords while a file is > being syntax-highlighted.
I think you just have to make sure the highlighting is done after setting filetype. When reloading the syntax file, the custom highlights have to be reloaded too. I think this could best be done by defining a buffer-local autocommand for FileType or Syntax. The main problem with your approach probably is how to detect that a new function was defined. Thomas. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
