Vim Tips Wiki
m (Fixed list so it doesn't wrap)
(Uploaded by JohnBot from a locally edited file)
Line 1: Line 1:
  +
{{TipImported
[[Category:Syntax]]
 
{{Tip
 
 
|id=24
 
|id=24
  +
|previous=23
|title=changing the default syntax highlighting
 
  +
|next=25
|created=March 4, 2001 11:57
+
|created=March 4, 2001
 
|complexity=intermediate
 
|complexity=intermediate
|author=benji--AT--member.AMS.org
+
|author=benji
 
|version=5.7
 
|version=5.7
 
|rating=11/24
 
|rating=11/24
 
}}
|text=
 
Here are some pointers to the vim documentation. Notice that the mechanism is different in vim 6.0 and vim 5.x.
+
Here are some pointers to the vim documentation. Notice that the mechanism is different in vim 6.0 and vim 5.x.
   
 
# I want *.foo files to be highlighted like HTML files: {{help|new-filetype}}
 
# I want *.foo files to be highlighted like HTML files: {{help|new-filetype}}
Line 16: Line 16:
 
# I want to change some of the colors from their defaults. Again, read {{help|mysyntaxfile}}
 
# I want to change some of the colors from their defaults. Again, read {{help|mysyntaxfile}}
   
 
==Comments==
}}
 
   
  +
----
== Comments ==
 
 
[[Category:Syntax]]

Revision as of 05:04, 28 October 2007

Tip 24 Printable Monobook Previous Next

created March 4, 2001 · complexity intermediate · author benji · version 5.7


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