Sometimes I write scripts without any filename extension. For example:
#!/usr/bin/env node
console.log('hello world!');
I hope that Vim can detect the filetype from the shebang line (e.g. #!/usr/bin/env node
is javascript
). What should I put into filetype.vim
?
# vim: ft=javascript
since Vim already checks for the modeline rather than reinventing the wheel?