sponsor Vim development Vim logo Vim Book Ad

glib.vim : syntax highlighting for additional glib types

 script karma  Rating 18/6, Downloaded by 1126    Comments, bugs, improvements  Vim wiki

created by
Matthew Hawkins
script type
This syntax file, written by my friend Jason Thomas, adds to your existing C syntax file many of the extra types and so forth given to you by the excellent glib library from http://www.gtk.org/

It is believed to be complete (at least for 1.2.x), though feel free to submit patches if you find something missing.
install details
*** General Vim ***
  - Add to your ~/.vim/syntax directory and
    :set syntax=glib
    when you want it.

*** Utilising Vim6 ***
- add to your ~/.vim/after/syntax/ directory and rename it "c.vim".  
- edit the script, comment out all the lines before the

   " Now setup the glib specific stuff

    comment (the ones to do with clearing out syntax items in vim5 and 6), and
    also comment out the second-last line of the file (the let b:current_syntax .. line).
    All that should be left is the "syn" related commands in-between.
- Load your favourite C or C++ file to get the glib highlighting automagically!

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
glib.vim 0.1 2002-01-17 6.0 Matthew Hawkins Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo