Issue 250 in msysgit: Can't open file C:\Program Files\Git\share\vim\vim72\syntax/nosyntax.vim

30 views
Skip to first unread message

codesite...@google.com

unread,
Apr 29, 2009, 8:11:44 PM4/29/09
to msy...@googlegroups.com
Status: New
Owner: ----

New issue 250 by pkufranky: Can't open file C:\Program
Files\Git\share\vim\vim72\syntax/nosyntax.vim
http://code.google.com/p/msysgit/issues/detail?id=250

When my .vimrc uses "syntax on", and try vim -D , i got

Entering Debug mode. Type "cont" to continue.
C:\Program Files\Git\share\vim\vimrc
line 3: set ai " set auto-indenting on for
programming
> cont
Error detected while processing C:\Program
Files\Git\share\vim\vim72\syntax\syntax.vim:
line 15:
E484: Can't open file C:\Program
Files\Git\share\vim\vim72\syntax/nosyntax.vim
Press ENTER or type command to continue


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Apr 29, 2009, 8:15:45 PM4/29/09
to msy...@googlegroups.com

Comment #1 on issue 250 by pkufranky: Can't open file C:\Program
Files\Git\share\vim\vim72\syntax/nosyntax.vim
http://code.google.com/p/msysgit/issues/detail?id=250

The version is Git-1.6.2.2-preview20090408.exe

codesite...@google.com

unread,
Apr 30, 2009, 5:01:53 AM4/30/09
to msy...@googlegroups.com
Updates:
Status: WontFix

Comment #2 on issue 250 by johannes.schindelin: Can't open file C:\Program

Files\Git\share\vim\vim72\syntax/nosyntax.vim
http://code.google.com/p/msysgit/issues/detail?id=250

If you want to play games with vi, please use msysGit.

codesite...@google.com

unread,
May 25, 2009, 1:06:36 AM5/25/09
to msy...@googlegroups.com

Comment #3 on issue 250 by rmelton: Can't open file C:\Program
Files\Git\share\vim\vim72\syntax/nosyntax.vim
http://code.google.com/p/msysgit/issues/detail?id=250

There is a workaround for this issue. I unfortunately, didn't track it
down to its
root cause, but to get it working, just tweak the ~/.gitconfig and have the
editor
set explicitly and without spaces. Below is what the relevant lines look
like from
my .gitconfig

[core]
editor = C:\\Progra~1\\Vim\\vim72\\vim.exe

Hope this helps.

codesite...@google.com

unread,
May 25, 2009, 4:04:35 AM5/25/09
to msy...@googlegroups.com

Comment #4 on issue 250 by johannes.schindelin: Can't open file C:\Program
Files\Git\share\vim\vim72\syntax/nosyntax.vim
http://code.google.com/p/msysgit/issues/detail?id=250

If you compare the paths in the original report and in your .gitconfig, you
will
realize that you no longer use Git's vi, so it has nothing to do with
spaces in the path.

The proper fix for the issue is to use msysGit, which contains all the
needed files.

codesite...@google.com

unread,
May 25, 2009, 4:53:26 PM5/25/09
to msy...@googlegroups.com

Comment #5 on issue 250 by markus.h...@web.de: Can't open file C:\Program
Files\Git\share\vim\vim72\syntax/nosyntax.vim
http://code.google.com/p/msysgit/issues/detail?id=250

syntax/nosyntax.vim is indeed missing. At first I ignored this issue after
your
WontFix, but today looked into it because of the activity. The subject
should
rather have been called "Can't disable syntax highlighting", since this is
actually
the real problem besides the error message. Typing ":syntax off" produces
an error
and syntax highlighting stays active.

Attachments:
0001-Git-installer-add-file-syntax-nosyntax.vim-for-Vim.patch 1.1 KB

codesite...@google.com

unread,
May 29, 2009, 1:52:08 PM5/29/09
to msy...@googlegroups.com

Comment #6 on issue 250 by markus.h...@web.de: Can't open file C:\Program
Files\Git\share\vim\vim72\syntax/nosyntax.vim
http://code.google.com/p/msysgit/issues/detail?id=250

pkufranky, can you try and verify the fix so that we can close this issue?

If you don't want to build the installer yourself, you can just download
the file
nosyntax.vim from
http://repo.or.cz/w/msysgit.git?a=blob_plain;f=share/vim/vim72/syntax/nosyntax.vim;hb=devel
and put it into C:\Program Files\Git\share\vim\vim72\syntax\

codesite...@google.com

unread,
May 29, 2009, 10:27:26 PM5/29/09
to msy...@googlegroups.com

Comment #7 on issue 250 by pkufranky: Can't open file C:\Program
Files\Git\share\vim\vim72\syntax/nosyntax.vim
http://code.google.com/p/msysgit/issues/detail?id=250

Thanks very much, it fixes the issue.

Reply all
Reply to author
Forward
0 new messages