in Blog

Syntax coloring for YAML files in macOS terminal

Recently I wondered if there is an easy way to get syntax highlighting for YAML files in the terminal on my MacBook. I tried using Pygments, but it did not really highlight properly my YAML files. Instead, I ended up using the vimcat tool provided by the vimpager package. Here’s how to install and run it, and a screenshot of vimcat in action.

$ brew install vimpager
$ vimcat service.yaml