views:

102

answers:

1

Hello.

In gVim for windows it's possible to execute current buffer via :!% command. But, unfortunately, the buffer file name is supplied to cmd.exe without quotes, so if file path has spaces gVim will not be able to execute it.

Is it any easy way to fix it in order to be able execute .bat, .py etc from within gVim?

+1  A: 

This's my guess, I don't have windows machine to try. Try

:!python "%"

or

:!"%"

credit: Eye of Hell

noomz
:!"%" was a success :). Please change your answer for future :)
Eye of Hell