How To Install texlive-context-vim on Fedora 36

In this tutorial we learn how to install texlive-context-vim in Fedora 36. texlive-context-vim is Generate Context syntax highlighting code from vim

Introduction

In this tutorial we learn how to install texlive-context-vim on Fedora 36.

What is texlive-context-vim

ConTeXt has excellent pretty printing capabilities for many languages. The code for pretty printing is written in TeX, and due to catcode juggling, such verbatim typesetting is perhaps the trickiest part of TeX. This makes it difficult for a “normal” user to define syntax highlighting rules for a new language. This module takes the onus of defining syntax highlighting rules away from the user and uses ViM editor to generate the syntax highlighting. There is a helper 2context.vim script to do the syntax parsing in ViM.

We can use yum or dnf to install texlive-context-vim on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install texlive-context-vim.

Install texlive-context-vim on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install texlive-context-vim

Install texlive-context-vim on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install texlive-context-vim

How To Uninstall texlive-context-vim on Fedora 36

To uninstall only the texlive-context-vim package we can use the following command:

sudo dnf remove texlive-context-vim

texlive-context-vim Package Contents on Fedora 36

/usr/share/texlive/texmf-dist/tex/context/third/vim
/usr/share/texlive/texmf-dist/tex/context/third/vim/2context.vim
/usr/share/texlive/texmf-dist/tex/context/third/vim/t-syntax-groups.mkii
/usr/share/texlive/texmf-dist/tex/context/third/vim/t-syntax-groups.mkiv
/usr/share/texlive/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkii
/usr/share/texlive/texmf-dist/tex/context/third/vim/t-syntax-highlight.mkiv
/usr/share/texlive/texmf-dist/tex/context/third/vim/t-vim.tex
/usr/share/texlive/texmf-dist/tex/context/third/vim/vimtyping-default.css

References

Summary

In this tutorial we learn how to install texlive-context-vim on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).