Vim Tips Wiki
Advertisement

Previous TipNext Tip

Tip: #24 - Changing the default syntax highlighting

Created: March 4, 2001 11:57 Complexity: intermediate Author: benji--AT--member.AMS.org Version: 5.7 Karma: 11/24 Imported from: Tip#24

Here are some pointers to the vim documentation. Notice that the mechanism is different in vim 6.0 and vim 5.x.

1. I want *.foo files to be highlighted like HTML files: :help new-filetype 2. I want to define a syntax file for *.bar files. Read the above and also: :help mysyntaxfile 3. I want to make a few changes to the existing syntax highlighting. Depending on the x in 5.x, either read the above and page down a few screens, or you may be able to skip right to :help mysyntaxfile-add 4. I want to change some of the colors from their defaults. Again, read :help mysyntaxfile

Comments

Advertisement