Thank you very much, Larry.  This worked, though perhaps not for the reason you 
expected.  Excuse the long description that follows, but the fix raised some 
issues that I thought I should report.  

I did just as you suggested, removed the C:/utils paths and reinstalled vim.

I then moved all my config files out of the way (including .vimrc and .bashrc) 
and tried :syntax on, which worked.

I then tried moving my .bashrc back to ~ and sourced it.  :syntax on did not 
work, which told me the problem was a line in my .bashrc. 

By iteratively cutting the .bashrc in half and sourcing it, I narrowed the 
problem down to this alias, which I have commented out:

     alias vi='vim';

I suspect people will tell me this was never necessary, but I honestly remember 
years ago having to put in this alias because when I typed "vi" I got an error 
back that the command was unrecognized, though "vim" was recognized.

I had thought vi was simply an alias.  It is not.  It's a separate utility.

When I type 

     $ which vi 

I get:

     /usr/bin/vi

When I type 

     $ which vim 

I get:

     /usr/bin/vim

When I type: 

     $ vim

I get:
                  VIM - Vi IMproved

                     version 7.1
               by Bram Moolenaar et al.
                 [etc.]

When I type: 

     $ vi

I get:
              VIM - Vi IMproved

                    version 7.3.3
               by Bram Moolenaar et al.
                 [etc.]

7.3.3 is the one I thought I installed.  I don't recall installing a separate 
utility "vim 7.1", but I guess I must have.  In any case, I'm very satisfied 
that "vi" is now showing syntax.  It puzzles me a bit that the specific command 
"vim" still does not work with syntax, but since I never type "vim" (I could 
easily reverse the above alias, I suppose), I am not concerned.  

Thank you again.

Best regards,
John


On 11/9/2010 5:09 PM, Larry Hall wrote:
> On 11/9/2010 4:26 PM, Harrington, John wrote:
> >
> >     Larry Hall, responding to my earlier posting, suggested I post a 
> > follow-up
> >     following the reporting guidelines.
> >
> >
> >     See my root post for the general description.
> >
> >     Larry suggested I move all my configuration files out of the way, open 
> > my
> >     .bashrc and type :syntax on.
> >
> >
> >     I moved my vimrc and .vimrc files to a temp dir from ~ and 
> > user/share/vim and
> >     usr/share/vim73 and opened a new window.  :syntax on still does not 
> > work.
> >
> >
> >     I tried moving my .profile and .bashrc files as well.  :syntax on still 
> > does
> >     not work.
> >
> >
> >     I enclose my cygcheck log.
>
>
> Thanks. I'd suggest the following:
>
>   1. Remove all paths containing C:/utils from your PATH environment variable.
>   2. Reinstall the 'vim' package via 'setup.exe'.
>   3. Try the test I outlined in my previous email again.
>
>
> --
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to