E114: Missing quote in gvim.exe', '-c'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

E114: Missing quote in gvim.exe', '-c'

Ni Va
Hi,

An attempt to modify Make_mvc.mak with a gvim -c command and it fails :

let makefile   = globpath(expand('$tmp'.'/vim/src'),'Make_mvc.mak')
call job_start([$vimruntime.'/gvim.exe', '-c', 'edit '.makefile, '-c', 'call setline(1,"SDK_INCLUDE_DIR")'])


Errors appear like that :
rror detected while processing command line:
E114: Missing quote: "SDK_INCLUDE_DIR)
E116: Invalid arguments for function setline


I don't understand why.
Thank by advance !
Niva

--
--
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: E114: Missing quote in gvim.exe', '-c'

Ni Va
Le dimanche 28 mai 2017 21:49:03 UTC+2, Ni Va a écrit :

> Hi,
>
> An attempt to modify Make_mvc.mak with a gvim -c command and it fails :
>
> let makefile   = globpath(expand('$tmp'.'/vim/src'),'Make_mvc.mak')
> call job_start([$vimruntime.'/gvim.exe', '-c', 'edit '.makefile, '-c', 'call setline(1,"SDK_INCLUDE_DIR")'])
>
>
> Errors appear like that :
> rror detected while processing command line:
> E114: Missing quote: "SDK_INCLUDE_DIR)
> E116: Invalid arguments for function setline
>
>
> I don't understand why.
> Thank by advance !
> Niva
Done sorry for disturbing
-c call setline(1,\"SDK_INCLUDE_DIR\"

--
--
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: E114: Missing quote in gvim.exe', '-c'

Ni Va
In reply to this post by Ni Va
Le dimanche 28 mai 2017 21:49:03 UTC+2, Ni Va a écrit :

> Hi,
>
> An attempt to modify Make_mvc.mak with a gvim -c command and it fails :
>
> let makefile   = globpath(expand('$tmp'.'/vim/src'),'Make_mvc.mak')
> call job_start([$vimruntime.'/gvim.exe', '-c', 'edit '.makefile, '-c', 'call setline(1,"SDK_INCLUDE_DIR")'])
>
>
> Errors appear like that :
> rror detected while processing command line:
> E114: Missing quote: "SDK_INCLUDE_DIR)
> E116: Invalid arguments for function setline
>
>
> I don't understand why.
> Thank by advance !
> Niva
Just another point :

start:['D:\Logiciels\Vim\vim80/gvim.exe', '-c', 'edit C:\Users\nn\AppData\Local\Temp\vim\src\Make_mvc.mak', '-c', 'call setline(1,\"setSDK_INCLUDE_DIR\")', '-c', 'wq']

How can I setline with space char in text, "set SDK_INCLUDE_DIR" out of "setSDK_INCLUDE_DIR".

Thanks

--
--
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: E114: Missing quote in gvim.exe', '-c'

Ni Va
Le lundi 29 mai 2017 10:29:53 UTC+2, Ni Va a écrit :

> Le dimanche 28 mai 2017 21:49:03 UTC+2, Ni Va a écrit :
> > Hi,
> >
> > An attempt to modify Make_mvc.mak with a gvim -c command and it fails :
> >
> > let makefile   = globpath(expand('$tmp'.'/vim/src'),'Make_mvc.mak')
> > call job_start([$vimruntime.'/gvim.exe', '-c', 'edit '.makefile, '-c', 'call setline(1,"SDK_INCLUDE_DIR")'])
> >
> >
> > Errors appear like that :
> > rror detected while processing command line:
> > E114: Missing quote: "SDK_INCLUDE_DIR)
> > E116: Invalid arguments for function setline
> >
> >
> > I don't understand why.
> > Thank by advance !
> > Niva
>
> Just another point :
>
> start:['D:\Logiciels\Vim\vim80/gvim.exe', '-c', 'edit C:\Users\nn\AppData\Local\Temp\vim\src\Make_mvc.mak', '-c', 'call setline(1,\"setSDK_INCLUDE_DIR\")', '-c', 'wq']
>
> How can I setline with space char in text, "set SDK_INCLUDE_DIR" out of "setSDK_INCLUDE_DIR".
>
> Thanks
This in a job_start command fails due to setline(1,\"set\ SDK_INCLUDE_DIR\")' :

[['D:\Logiciels\Vim\vim80/gvim.exe', '-c', 'edit C:\Users\nnn\AppData\Local\Temp\vim\src\Make_mvc.mak', '-c', 'call setline(1,\"set\ SDK_INCLUDE_DIR\")', '-c', 'wq']]

gvim launched says "SDK_INCLUDE_DIR")" [New File]

--
--
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: E114: Missing quote in gvim.exe', '-c'

Nikolay Aleksandrovich Pavlov
In reply to this post by Ni Va
2017-05-28 23:10 GMT+03:00 Ni Va <[hidden email]>:

> Le dimanche 28 mai 2017 21:49:03 UTC+2, Ni Va a écrit :
>> Hi,
>>
>> An attempt to modify Make_mvc.mak with a gvim -c command and it fails :
>>
>> let makefile   = globpath(expand('$tmp'.'/vim/src'),'Make_mvc.mak')
>> call job_start([$vimruntime.'/gvim.exe', '-c', 'edit '.makefile, '-c', 'call setline(1,"SDK_INCLUDE_DIR")'])
>>
>>
>> Errors appear like that :
>> rror detected while processing command line:
>> E114: Missing quote: "SDK_INCLUDE_DIR)
>> E116: Invalid arguments for function setline
>>
>>
>> I don't understand why.
>> Thank by advance !
>> Niva
>
> Done sorry for disturbing
> -c call setline(1,\"SDK_INCLUDE_DIR\"

This looks like a problem with escaping for cmd.exe, you should not
need escaping quotes on your own, this is to be done by Vim.

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

--
--
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: E114: Missing quote in gvim.exe', '-c'

Ni Va
In reply to this post by Ni Va
Le lundi 29 mai 2017 11:15:48 UTC+2, Ni Va a écrit :

> Le lundi 29 mai 2017 10:29:53 UTC+2, Ni Va a écrit :
> > Le dimanche 28 mai 2017 21:49:03 UTC+2, Ni Va a écrit :
> > > Hi,
> > >
> > > An attempt to modify Make_mvc.mak with a gvim -c command and it fails :
> > >
> > > let makefile   = globpath(expand('$tmp'.'/vim/src'),'Make_mvc.mak')
> > > call job_start([$vimruntime.'/gvim.exe', '-c', 'edit '.makefile, '-c', 'call setline(1,"SDK_INCLUDE_DIR")'])
> > >
> > >
> > > Errors appear like that :
> > > rror detected while processing command line:
> > > E114: Missing quote: "SDK_INCLUDE_DIR)
> > > E116: Invalid arguments for function setline
> > >
> > >
> > > I don't understand why.
> > > Thank by advance !
> > > Niva
> >
> > Just another point :
> >
> > start:['D:\Logiciels\Vim\vim80/gvim.exe', '-c', 'edit C:\Users\nn\AppData\Local\Temp\vim\src\Make_mvc.mak', '-c', 'call setline(1,\"setSDK_INCLUDE_DIR\")', '-c', 'wq']
> >
> > How can I setline with space char in text, "set SDK_INCLUDE_DIR" out of "setSDK_INCLUDE_DIR".
> >
> > Thanks
>
> This in a job_start command fails due to setline(1,\"set\ SDK_INCLUDE_DIR\")' :
>
> [['D:\Logiciels\Vim\vim80/gvim.exe', '-c', 'edit C:\Users\nnn\AppData\Local\Temp\vim\src\Make_mvc.mak', '-c', 'call setline(1,\"set\ SDK_INCLUDE_DIR\")', '-c', 'wq']]
>
> gvim launched says "SDK_INCLUDE_DIR")" [New File]


Ok solved by permutting simple by double quote

"call setline(1,'set SDK_INCLUDE_DIR')"

Thank you. done

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