Wednesday, November 24, 2010

makeprg and path arguments containing spaces

Hi,

to be able to check my python code I wanted to use pylint, which is
installed in my path.

So I tried the following:

setlocal makeprg=c:\sdk\win32\1.1\Python26\Scripts/pylint.bat\
--rcfile=C:\Program\ Files\ (x86)\vim\pylintrc\
--output-format=parseable\ --reports=n\ %

The problem seem to be the spaces in the --rcfile path argument. If I
put the pylintrc directly to my c: drive and change the command accordingly:

setlocal makeprg=c:\sdk\win32\1.1\Python26\Scripts/pylint.bat\
--rcfile=c:\pylintrc\ --output-format=parseable\ --reports=n\ %

, everything works fine. Of course there are other ways to get pylint
integrated with vim, but right now I wonder how to handle path arguments
containing whitespaces with makeprg correctly.

Thanx for any help

Wolfgang

--
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

No comments:

Post a Comment