Tony Mechelynck wrote: > On 28/12/08 10:35, [email protected] wrote: >> Hi, >> >> I am a Gentoo user. Basically, I want to enable the filetype plugin >> and use the default syntax highlighting distributed with Gentoo. But I >> want to apply my custom syntax highlighting also. I did the following, >> but did not get what I expected: >> >> vim /etc/fstab >> syn match mTab /\t/ >> hi link mTab Visual >> >> The expected result is that all tab char. will be displayed in a >> reverse color, so I can find them easily. If the file I am working >> with does not have 'filetype' set, my commands works; if vim has set >> the 'filetype', and it detected the file type, my commands won't work >> at all. >> >> any idea about how to fix this? thx > > Possibility I: > Instead of ":syn match" which will be overridden by the syntax > highlighting, use ":2match", which won't. > > Possibility II: > :set list listchars=tab:\|_ > > will show every tab as one | character followed by zero or more _ > characters, all of them in SpecialKey highlighting, which by default has > blue foreground.
Possibility III: Dr. Chip's seetab plugin. The latest version is available at http://mysite.verizon.net/astronaut/vim/ and I believe has a few improvements/fixes over the one on the Vim scripts site. Ben. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
