Hi, This set of public IDL routines are mis-identified as filetype=cpp rather than filetype=idlang by Vim (tested on version 7.2): http://www-astro.physics.ox.ac.uk/~mxc/idl/.
For a specific example, download http://www-astro.physics.ox.ac.uk/~mxc/idl/ppxf_2009-04-14.zip and look at range.pro (which is detected correctly) and then compare any of the other *.pro files, which are misidentified as cpp. Of course I can manually specify the filetype (either on a file-by- file basis or by associating *.pro with IDL in my vimrc), but these are valid IDL (and the routines are the number one hit on a Google search for "IDL"!), so it seems like it should work out of the box. Playing around, I found that if I remove line 2 from the file (which is a line containing only the ";" character), the file is correctly identified. However, I don't know what's going wrong with these files -- or how to fix it. Any ideas? -- Mike --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
