vim not highlighting syntax when used in a Docker container vim not highlighting syntax when used in a Docker container docker docker

vim not highlighting syntax when used in a Docker container


I used the :hi command with vi open, and the output was colorful. According to Ingo Karkat that meant that there were no syntax definitions/filetype detections installed in the container. I used zypper install -y vim-data, and vi started to highlight syntax in files.


I also run into the same problem. The system I use is docker + centos7+ vim7. I solved the problem by updating vim 7 to vim 8.