Wednesday, October 21, 2020

Re: Retrieving serverlist list out of popup

Hi,

Ni Va schrieb am 20.10.2020 um 15:29:
>
> I am using GVim build following infos :
>
> * VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Oct 20 2020 14:40:45)
> * MS-Windows 32-bit GUI version with OLE support
> * Included patches: 1-*1870*
>
>
> I would like to retrieve a script (vim9) output of serverlist actually running out of a popup.
> The only *constraint *is to use *gvim.exe as executable.*
>
> The command I launch from script (vim9) actually which gives popupwhere_I would like a string's list_.
> echo job_start( expand('$vimruntime/gvim.exe --serverlist') )

is there a specific reason you need to start a second instance of GVIM?
There is a function serverlist() which provides this information.

And if you really need to start a second process does it have to be GVIM or
would VIM work also? VIM prints the list of servers on standard output, so
you could redirect its output with the correct set of options for job_start().

Regards,
Jürgen


--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/a5caafa0-a8b6-d221-976e-178196805448%40googlemail.com.

No comments:

Post a Comment