vimdocker

Highlighting Docker commands in Vim


I am editing Dockerfile on command line. I would like to know how could I make Docker's command to be recognized by Vim?


Solution

  • The docker GitHub repository contains a dockerfile.vim that provides syntax highlighting for Dockerfiles:

    https://github.com/docker/docker/tree/master/contrib/syntax/vim