vim-erlang / vim-erlang-runtime

Erlang indentation and syntax for Vim
https://vim-erlang.github.io
101 stars 29 forks source link

Improve detection of Erlang files #4

Closed hcs42 closed 11 years ago

hcs42 commented 11 years ago

Create a scripts.vim file that recognizes Emacs file type specification (-*- erlang -*-) and escript hash bangs as Erlang files.

*.erlang files should also be recognized as Erlang files.

hcs42 commented 11 years ago

I wrote:

*.erlang files should also be recognized as Erlang files.

Emacs does not recognize *.erlang as Erlang, so neither should Vim. If the user wants to create such a file, they should add % -*- erlang -*- as the first line.

hcs42 commented 11 years ago

Done.