On Wednesday 11 October 2006 19:31, Peter Hodge wrote:

> At any rate, using ':setfiletype fortran' should fix the problem straight
> away.

No. This does not change the behavior. I cannot get the correct syntax 
highlighting even after doing this.

> The distributed ftplugin file for fortran sets a variable called
> 'b:fortran_fixed_source' to let the syntax file know how to highlight.  The
> 'bad highlighting' is because the ftplugin file isn't being executed (for
> some reason?) and so the syntax defaults to using wrong highlighting (it's
> looking for numbers at the start of each line). 

This could be the reason. I have changed the default .vim/ftplugin/fortran.vim 
quite a bit and might have messed it up somewhere.

> Curiously, my Vim doesn't 
> have a problem with opening a session and choosing the correct
> highlighting, so I wonder if something in your custom ftplugin or syntax
> files is preventing the distributed ftplugin file from detecting the
> fortran format correctly? Is there any chance you could paste the contents
> of your .vim/ftplugin/fortran.vim into an email?

I think this list does not allow any attachements (my messages were not 
delivered when I attached the files). So I posted 
my .vimrc, .gvimrc, .vim/ftplugin/fortran.vim, .vim/indent/fortran.vim at 
http://kamaraju.googlepages.com/vim_problems .

Please forgive me for not "tidying up" those configuration files. But I hope 
you guys wont have any trouble digging through them.

Thanks for all the replies so far.

raju

-- 
http://groups.google.com/group/ask-anything/about

Reply via email to