Wednesday, December 14, 2011

Re: Using Quotes in VimScript for maps

Hi td!

On Mi, 14 Dez 2011, td wrote:

> Thanks for the response.
>
> The script works under Win7(64-bit, VIM 32-bit), but fails on WinXP(32-
> bit) when I have spaces in the file name.

So you need to escape the file name, e.g.
exe ":!python" fnameescape(expand(@%))

(or whatever your command was)

regards,
Christian

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