How To Install vim-gtk-syntax on CentOS 7

In this tutorial we learn how to install vim-gtk-syntax on CentOS 7. vim-gtk-syntax is Vim syntax highlighting for GLib, Gtk+, Gstreamer, and more

Introduction

In this tutorial we learn how to install vim-gtk-syntax on CentOS 7.

What is vim-gtk-syntax

A collection of C extension syntax files for xlib, glib (gobject, gio), gdk-pixbuf, gtk2 (gdk2), gtk3 (gdk3), atk, at-spi, pango, cairo, clutter, gimp, gstreamer, dbus-glib, json-glib, libglade, gtksourceview, gnome-desktop, libgsf, libnotify, librsvg, libunique, libwnck, gtkglext, vte, poppler, evince. The xlib one was originally created by Hwanjin Choe (vimscript #570), the others were generated from gtk-doc declaration lists and support enabling/disabling of highlighting of deprecated declarations.

We can use yum or dnf to install vim-gtk-syntax on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install vim-gtk-syntax.

Install vim-gtk-syntax on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install vim-gtk-syntax using yum by running the following command:

sudo yum -y install vim-gtk-syntax

Install vim-gtk-syntax on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install vim-gtk-syntax using dnf by running the following command:

sudo dnf -y install vim-gtk-syntax

How To Uninstall vim-gtk-syntax on CentOS 7

To uninstall only the vim-gtk-syntax package we can use the following command:

sudo dnf remove vim-gtk-syntax

References

Summary

In this tutorial we learn how to install vim-gtk-syntax on CentOS 7 using yum and dnf.