Makefile comment header in the first line

emacs, makefile, vim

Solution

That looks like a setting for the Emacs editor, cp. Choosing Modes.

Vim has an equivalent called modelines, see `:help modeline`. It would look like this:

# vim:ft=make:

Problem

My question is very short I have seen in many makefiles this note: ``` # -*- MakeFile -*- ``` I wonder what is it for, is it some vim setting? Thanks!

Original source