at wrote: > If I do this: > 1. Start gvim > 2. :e test.f90 > Then I get messed up syntax highlighting (i.e. there is some > color, but its not right) > > However, if I do this: > 1. Create a file called test.f90 > 2. Double click on it in my OS so that it opens in gvim > Then the syntax highlighting is perfect.
I don't know but I see that vim72/filetype.vim sets filetype "fortran" and vim72/syntax/fortran.vim looks to see if a global variable fortran_dialect is defined, and if not, tries guessing. So, I would check that in the problem case, the output from the following shows "fortran": :verbose set filetype? They I would search for fortran_dialect and see if there might be some explanation (e.g. in your vimrc). Or, if you always use F90, put following in vimrc: :set fortran_dialect = 'f90' John --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
