Reply to message «Problem when runtime files are in folder with spaces», 
sent 21:32:44 08 January 2011, Saturday
by björn:

> Line 607 in runtime/syntax/vim.vim on my machine is:
> 
>  exe "syn include @vimRubyScript ".s:rubypath
> 
> Line 628 is similar:
> 
>  exe "syn include @vimPythonScript ".s:pythonpath
> 
> 
> Can runtime/vim.vim be fixed or is there some rule against having the
> runtime folder in a path with spaces?
That is why I always say about fnameescape() function when I see such code.

Original message:
> Hi,
> 
> It was brought to my attention that having the runtime folder in a
> path with spaces produces errors when trying to open ".vim" files.  In
> particular this is the error that pops up (the runtime location is
> inside the MacVim app bundle hence the long path):
> 
> Error detected while processing /Applications/MacVim Folder With
> Spaces/MacVim.app/Contents/Resources/vim/runtime/syntax/vim.vim:
> line  607:
> E172: Only one file name allowed
> line  628:
> E172: Only one file name allowed
> 
> Line 607 in runtime/syntax/vim.vim on my machine is:
> 
>  exe "syn include @vimRubyScript ".s:rubypath
> 
> Line 628 is similar:
> 
>  exe "syn include @vimPythonScript ".s:pythonpath
> 
> 
> Can runtime/vim.vim be fixed or is there some rule against having the
> runtime folder in a path with spaces?
> 
> Björn

Attachment: signature.asc
Description: This is a digitally signed message part.

Raspunde prin e-mail lui