On Wednesday, October 3, 2012 10:49:19 AM UTC-7, Charles Campbell wrote:
> Paul Lou wrote:
> 
> > Hello all,
> 
> >
> 
> > First I'd like to thank the VIM team for creating one of the best and most 
> > flexible editors in the world.
> 
> >
> 
> > I just started learning VIM with Fortran, and I realized a syntax coloring 
> > problem when creating a Fortran file through
> 
> >
> 
> > vim example.f
> 
> >
> 
> > As shown in shot.png, the syntax coloring is only working partially.
> 
> >    
> 
> The problem: your code is beginning "too soon"; ie. the "p" in "program" 
> 
> should be in column 8.  Try inserting enough space and you'll see the 
> 
> error highlighting go away.
> 
> 
> 
> The more interesting question is why does subsequent editing show no 
> 
> error highlighting?  That's because some dialects of fortran use 
> 
> "fixed-source" (ie. code doesn't start until column 8) and some use 
> 
> "free source" form.  The syntax/fortran.vim file examines the first 500 
> 
> lines for "signs of free source format".  So, when you first began 
> 
> editing, fortran.vim assumed f95 and fixed-source.  Subsequent editing 
> 
> of the file let fortran.vim determined you wanted "free source" form.
> 
> 
> 
> You might want to specify what dialect of fortran you're using, too 
> 
> (choices are: F elf f77 f90 f95).  See  :help fortran.vim for more 
> 
> information.
> 
> 
> 
> Regards,
> 
> C Campbell

Thank you for your spread of knowledge Mr. Campbell. I will look into more 
about this "fixed" and "free" forms and the reasons behind these forms.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to