Install vim-syntax-docker by entering the following commands in the terminal:
sudo apt update sudo apt install vim-syntax-docker
Description:
Docker container engine - Vim highlighting syntax files
This package provides syntax files for the Vim editor for editing Dockerfiles from the Docker container engine.
Homepage: https://www.docker.com/community-edition
Version: 17.12.1-0ubuntu1
Section: universe/admin