In my case, these "remote Linux machines" usually have a "small" or "tiny" version of vim that does not have syntax highlighting. When in vim enter the command :version and see if there are +syntax or -syntax in the list of functions. If you do not have +syntax , then vim was compiled without syntax support, and you need to recompile vim on this machine.
source share