glib.vim : syntax highlighting for additional glib types
script karma |
Rating 18/6,
Downloaded by 1450 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Matthew Hawkins |
|
script type |
syntax |
|
description |
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!
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 13.59.48.34
|