Teemu Likonen wrote: > Peng Yu (2008-10-19 14:42 -0700): > > >> I don't know how the syntax highlight work. What I should use to >> replace 'name of the syntax item here', 'whatever' and >> 'somethingelse'? >> > > OK, here's more detailed explanation. Put the following code to some > file. If you mean to use this feature always with filetype "tex" put the > code to the standard location of user's personal filetype plugins. It > can be ~/.vim/after/ftplugin/tex.vim . Then it is loaded automatically > when you start editing a file of that type. > [snip]
Thank you, Teemu L, for helping Peng Y. Peng: May I suggest trying the hilinks.vim plugin to determine highlighting group names: http://mysite.verizon.net/astronaut/vim/index.html#HILINKS This one provides the :HLT! command -- with it you'll get a syntax stack trace and a highlighting stack trace as you move your cursor about. Thus, you'll be able to identify what it is you want to change. After installing hilinks.vim, edit some .tex file and turning the plugin on with :HLT!. You'll see the Synstack: list change as you move about the file. In particular, put the cursor atop some somewhere on the some_file in a \input{some_file} line and you should see: SynStack: texPreamble->texInputFile HltTrace: texInputFile->Special ... Thus your cursor is atop an item in the texInputFile syntax group (which is contained in a texPreamble group). The "texInputFile" is the syntax group name that I think you're interested in. The HltTrace traces the highlighting; there's a highlighting command for texInputFile which in turn is linked to the Special highlighting group. Regards, Chip Campbell --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
