I\'m trying to get VIM to indent Javascript with the \'=\' and related commands. When I try to auto indent the following, for example:
new function($) {
For me it works (not very helpful statement, I know ;-) ). I suppose that the filetype is not detected correctly.
What does
:set filetype
say? It should report "javascript".
[EDIT] Hint: Please note that there is an option called 'filetype' and a command called :filetype. To get help for the option do :help 'filetype' for the command do :help :filetype.