gir-vim-syntax : C extension syntax files for GTK+ and related libraries
�script karma� |
Rating 5/2,
Downloaded by 66 |
�Comments, bugs, improvements�
|
Vim wiki
|
created by |
David Necas |
� |
script type |
syntax |
� |
description |
Vim C extension syntax files for various libraries, mostly GTK+-related.
It can be used as a replacement of gtk-vim-syntax (vimscript #1000) and might be seen as its successor, at least in spirit. However, the set of libraries and extraction method differ. The syntax files are generated from gobject-introspection (https://gi.readthedocs.io/en/latest/) GIR files (with a few manual additions). Keyword types can differ from gtk-vim-syntax (e.g. Function vs. Macro). There is no mechanism for highlighting deprecated symbols differently.
The package includes the extraction script. It can be used to generate newer versions or completely new syntax files from other GIR files.
At present it contains the following syntax files:
atk.vim
babl.vim
cairo.vim
fftw3.vim
gdkpixbuf.vim
gegl.vim
glib.vim
graphene.vim
gtk2.vim
gtk3.vim
gtk4.vim
gtksourceview2.vim
gtksourceview3.vim
gtksourceview4.vim
hdf5.vim
jsonglib.vim
librsvg.vim
libxml2.vim
pango.vim
vulkan.vim
xlib.vim
|
� |
install details |
1. Copy the contents of directory syntax to your $HOME/.vim/after/syntax
�� (or copy just selected files).
2. Include selected files in your $HOME/.vim/after/syntax/c.vim like this:
�� runtime! syntax/glib.vim
�� runtime! syntax/gdkpixbuf.vim
�� runtime! syntax/gtk3.vim
�� runtime! syntax/pango.vim
�� runtime! syntax/cairo.vim
|
� |
script versions (upload new version)
Click on the package to download.
gir-vim-syntax.zip |
20250610 |
2025-06-10 |
7.0 |
David Necas |
Missing type constants for various non-classed types were fixed by better detecting the get-type constructs. Lists of extra symbols to add can now also define symbols to skip (omit).
GLib syntax was updated to a slightly newer version 2.84.2. Several odd internal GLib macros were suppressed in the syntax files. |
gir-vim-syntax.zip |
20250602 |
2025-06-02 |
7.0 |
David Necas |
Missing type constants like GTK_TYPE_LABEL were added. Two new syntax files were added: gtksourceview4 (generated from GIR) and hdf5 (created manually). |
gir-vim-syntax.zip |
20250531 |
2025-05-31 |
7.0 |
David Necas |
A number of missing GLib symbols were added, in particular related to byte order conversion and limits of integral and floating point types. |
gir-vim-syntax.zip |
20250526 |
2025-05-26 |
7.0 |
David Necas |
Initial upload |
ip used for rating: 84.16.232.16
|