Monday, April 21, 2014

Re: --remote-expr

On Monday, April 21, 2014 2:39:46 PM UTC+1, Ni Va wrote:
> Yes this works!
>
>
>
> On Monday, April 21, 2014 2:01:18 PM UTC+1, ZyX wrote:
>
> > On Apr 21, 2014 3:40 PM, "Ni Va" <niva...@gmail.com> wrote:
>
> >
>
> > >
>
> >
>
> > >
>
> >
>
> > >
>
> >
>
> > > OS : Windows 8.1
>
> >
>
> > >
>
> >
>
> > > While I happen to call a BasicTask() that echoes "foo" into Vim server named JOB_1, I don't success to do the same thing with this executed command from Gvim:
>
> >
>
> > >
>
> >
>
> > >
>
> >
>
> > > From console prompt : vim --servername JOB_1 --remote-expr BasicTask() => OK t displays foo
>
> >
>
> > >
>
> >
>
> > > From executed command within GVim:
>
> >
>
> > > exe "!start cmd /c "vim --servername JOB_1 --remote-expr BasicTask()""
>
> >
>
> > Does not it throw a bunch of errors like "Undefined variable: vim"? You need to escape double quotes inside double quotes.
>
> >
>
> > Also why are you using "cmd /c" and :exe? Does not just
>
> >
>
> >     !start vim --servername JOB_1 --remote-expr BasicTask()
>
> >
>
> > work?
>
> >
>
> > >
>
> >
>
> > > --
>
> >
>
> > > --
>
> >
>
> > > 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 vim_use+u...@googlegroups.com.
>
> >
>
> > > For more options, visit https://groups.google.com/d/optout.

Can you give me some example of "remote_expr(" because I try to ask for strftime and it does not take it.
strftime or myFunc example will be great as example

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: