Lines Matching refs:cmd
39 " Run "cmd". Returns the job if using a job.
40 func RunCommand(cmd) argument
46 let job = job_start(a:cmd, {"stoponexit": "hup"})
49 exe 'silent !start cmd /c start "test_channel" ' . a:cmd
51 exe 'silent !' . a:cmd . '&'
79 " Run a Python server for "cmd" and call "testfunc".
81 func RunServer(cmd, testfunc, args) argument
90 let pycmd = s:python . " " . a:cmd . arg
98 call assert_false(1, "Can't start " . a:cmd)
106 call s:kill_server(a:cmd)
110 func s:kill_server(cmd) argument
117 let cmd = substitute(a:cmd, ".py", '', '')
118 call system('taskkill /IM ' . s:python . ' /T /F /FI "WINDOWTITLE eq ' . cmd . '"')
120 call system("pkill -f " . a:cmd)
259 let cmd = lines[1]
261 let cmd = lines[0]
264 let cmd = substitute(cmd, '-u \f\+', '-u ' . name, '')
265 if cmd !~ '-u '. name
266 let cmd = cmd . ' -u ' . name
268 let cmd .= ' --not-a-term'
269 let cmd = substitute(cmd, 'VIMRUNTIME=\S\+', '', '')
272 if cmd =~ 'valgrind.*--log-file='
273 let cmd = substitute(cmd, '--log-file=\(\S*\)', '--log-file=\1.' . g:valgrind_cnt, '')
277 return cmd
282 let cmd = GetVimCommand()
283 let cmd = substitute(cmd, '-u NONE', '--clean', '')
284 let cmd = substitute(cmd, '--not-a-term', '', '')
287 let cmd ..= ' --cmd "set enc=utf8" '
290 …" let cmd = 'valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind ' . cmd
292 return cmd
312 let cmd = GetVimCommand()
316 let args .= ' --cmd "so Xbefore.vim"'
324 …" let cmd = 'valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind ' . cmd
326 exe "silent !" . a:pipecmd . cmd . args . ' ' . a:arguments
364 for cmd in a:cmds
365 exe cmd