by brokenparser · 12y ago · 0 comments
It works simply by adding this line on the top or bottom:
/* vim:set filetype=javascript: */
You can add other options in there as well, so it's easy for others to match your indentation style for instance.There is also https://github.com/clausreinke/typescript-tools