Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

work on windows.

  • Loading branch information...
commit 19d7e8a2fe65f43d1404cdd46fcf20609e74ecdd 1 parent aba59d7
mattn authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 autoload/bg.vim
4 autoload/bg.vim
@@ -32,6 +32,9 @@ fun! bg#Run(cmd, outToTmpFile, onFinish)
32 32 let cmd = '{ '.bg#ListToCmd(a:cmd).'; }'
33 33 if a:outToTmpFile
34 34 let tmpFile = tempname()
  35 + if has('win32') || has('win64')
  36 + let tmpFile = substitute(tmpFile, '\\', '/', 'g')
  37 + endif
35 38 let cmd .= ' &> '.shellescape(tmpFile)
36 39 let escapedFile = ','.S([string(tmpFile)])[0]
37 40 else
@@ -103,6 +106,7 @@ py << EOF
103 106 import threading
104 107 import string
105 108 import sys, tokenize, cStringIO, types, socket, string, vim, os
  109 +import subprocess
106 110 from subprocess import Popen, PIPE, STDOUT
107 111
108 112 class MyThread ( threading.Thread ):

0 comments on commit 19d7e8a

Please sign in to comment.
Something went wrong with that request. Please try again.