6 ms·
I write TypeScript in vim and don't wish to run proprietary software, save for a few games on a machine dedicated for that purpose. It works simply by adding t
by brokenparser 13y ago
I write TypeScript in vim and don't wish to run proprietary software, save for a few games on a machine dedicated for that purpose.
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.
- deleted 13y ago[deleted]
- stewbrew 13y agoWhy don't you use https://github.com/leafgarland/typescript-vim https://github.com/leafgarland/typescript-vim? There is also https://github.com/clausreinke/typescript-tools https://github.com/clausreinke/typescript-tools
- brokenparser 13y agoThanks!
- shaneofalltrad 13y agoHaa! Much like adding a 70's Lac Engine into a Tesla. If it works that is cool and trendy and not monetarily smart.