Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highlighting docker commands in vim

Tags:

vim

docker

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

like image 729
Romain Jouin Avatar asked Oct 20 '15 19:10

Romain Jouin


2 Answers

There is another popular plugin for Vim: https://github.com/ekalinin/Dockerfile.vim

like image 117
Arturo Herrero Avatar answered Nov 15 '22 04:11

Arturo Herrero


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

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

like image 34
Maxime Avatar answered Nov 15 '22 04:11

Maxime