Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to treat a Makefile with another name in vim?

Tags:

vim

makefile

I am working in a library that has its own Makefile, so I am using my own Makefile called my_makefile and use make -f my_makefile

My problem is how to tell Vim that my_makefile is an actual Makefile and use color scheme that it use for a Makefile.

It is hard to read it now.

like image 262
Aznaveh Avatar asked Sep 18 '25 08:09

Aznaveh


1 Answers

How about the

:set syntax=make

command

like image 78
Adracus Avatar answered Sep 21 '25 09:09

Adracus