term_sendkeys syntax error on windows

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

term_sendkeys syntax error on windows

Ni Va
Hi,

From a vimscript, some term_sendkeys syntax does not pass because of quote or not escaped chars.


If you see the attached screen, Point 4 term_sendkeys succeed, not point 5.
Can you help me for the syntax.

Thank you
NiVa


fun! BuildRuby() "{{{
  " 1. open a terminal
  " terminal

  " 2. go back to vimscript and sleep hummm.
  " sleep 800m

  " 3. get just opened terminal
  let bufnr=0
  for buf in getbufinfo() | if getbufvar(buf.bufnr,'&buftype')=='terminal' | let bufnr = buf.bufnr | endif | endfor

  " 4. init env
  call term_sendkeys(bufnr, '"c:/program files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvarsamd64_x86.bat
"')

  " 5.
  call term_sendkeys(bufnr, 'cd /d '.expand($userprofile).'/source/ruby-2.6.0-rc1
')

endfunction "}}}




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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

Capture.PNG (27K) Download Attachment