Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion fortran highlighting not working
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Srinath  
View profile  
 More options Sep 2 2008, 2:04 pm
From: Srinath <srinath.vadlam...@gmail.com>
Date: Tue, 2 Sep 2008 11:04:38 -0700 (PDT)
Local: Tues, Sep 2 2008 2:04 pm
Subject: Re: fortran highlighting not working
Is it the case that the .gvimrc is sourced only once upon starting
MacVim? I now know what is my issue.
Normally in this modern age ;), one would have "let
fortran_free_source=1" in their .gvimrc file.  If one was to get fancy
(hey...fortran is to a modern language ;)), then one would comment out
the quoted above and instead use:
"or comment-out the above and uncomment this:
let s:extfname = expand("%:e") " .f90 wil be free, .f fixed
if s:extfname ==? "f90"
  let fortran_free_source=1
elseif s:extfname ==? "F90"
  let fortran_free_source=1
else
  unlet! fortran_free_source
endif

and free form would be selected because of file extension, and all
excluded would be considered fixed form.  Now, if one starts with
"macvim <foo>.f90", then all further opened files will be opened with
"let fortran_free_source=1".  But, if one starts "macvim <bar>.f" it
is properly highlighted as fixed form fortran, but if I open a new tab
for <foo>.f90, MacVim is still using "unlet fortran_free_source", and
thus is incorrectly highlighted.

So, how do get the .vimrc or .gvimrc source with every new tab?  Also,
can I get an explanation for the different purposes for .vimrc
and .gvimrc?

Thanks so much for making MacVim what it is,
<>Srinath

On Aug 26, 8:21 am, Srinath <srinath.vadlam...@gmail.com> wrote:

> I got things to work by using the snap shot right before the last
> stable release (7-2?).   I will elaborate later today.

> On Aug 26, 6:24 am, Nico Weber <nicolaswe...@gmx.de> wrote:

> > Hi Srinath,

> > On 26.08.2008, at 08:09, Srinath wrote:

> > > With the most recent snapshot, the fortran highlighting for
> > > fortran_free_form is not working.

> > does it work with the system stock `vim` in Terminal.app? If so,  
> > please do `:e $VIMRUNTIME/syntax/fortran.vim`. What's the version of  
> > that file (third line)? MacVim ships with version 0.88, which is the  
> > official fortran syntax file -- also included with vim7.2 (7.0 even).

> > If highlighting for `fortran_free_form` stopped working, it's probably  
> > because the fortran syntax file was changed.

> > Hm, after some googling I suspect that you're talking about  
> > `fortran_free_source`. Could you elaborate on the problem?

> > Nico


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.