Thursday, March 5, 2026

Re: Does popup_menu() functions asynchronous?



вт, 3 мар. 2026 г., 11:41 Piotr Kolasiński <ptkola@gmail.com>:
I try to use popup_menu() in linear code like:

——

func PopupResult(id, sel)
    let g:popup_sel = a:result
    echo "In popup: " .. g:result
endfunc

call popup_menu(["A","B","C"], #{ callback: 'PopupResult' })

echo 'After popup'

——-

but 'After popup' is displayed immediately, not waiting for finish the call. 
Does popup_menu works asynchronous? How can I execute such code in linear way?

Piotr

--
--
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 visit https://groups.google.com/d/msgid/vim_use/78474f86-0bd6-401c-bdc3-fc85b4ca7b45n%40googlegroups.com.

Hello,

No you can't. The good news is that you hardly ever need it. Just return and continue execution from the callback function. The way typical for _modeless_ dialogs.

Regards,
Matvey

--
--
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 visit https://groups.google.com/d/msgid/vim_use/CAFsTB%2B%2B32J5Qe4eLLhN3QighXUS8KxT%2BsEv%3DkUDOx7OtLCYqGQ%40mail.gmail.com.

Re: Startup flag with Errors ?

The solution is to revert back to a previous vimrc file; unless you know of another way besides just deleting the lines within the vimrc file as well ?

On Thursday, March 5, 2026 at 4:14:29 AM UTC-5 Christian Brabandt wrote:

On Do, 05 Mär 2026, Christopher wrote:

> When running the command `vim --startuptime vimlogMessages. The log messages should be written to such a file but that file doesn't exist ? Although when running the mentioned command the below is seen within my shell but the log messages are placed within my vimrc file ?
>
>
> shellvimerror.png

Looks like you accidentally have overwritten /etc/vimrc with a previous
attempt of using --startuptime /etc/vimrc as root.

And now this file contain a startuptime log instead of being a system
initialization file.


Thanks,
Christian
--
You know it's going to be a long day when you get up, shave and shower,
start to get dressed and your shoes are still warm.
-- Dean Webber

--
--
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 visit https://groups.google.com/d/msgid/vim_use/f84a5509-0fd2-4b90-bac5-d2d1c5cbbb6fn%40googlegroups.com.

Re: Startup flag with Errors ?

On Do, 05 Mär 2026, Christopher wrote:

> When running the command `vim --startuptime vimlogMessages. The log messages should be written to such a file but that file doesn't exist ? Although when running the mentioned command the below is seen within my shell but the log messages are placed within my vimrc file ?
>
>
> shellvimerror.png

Looks like you accidentally have overwritten /etc/vimrc with a previous
attempt of using --startuptime /etc/vimrc as root.

And now this file contain a startuptime log instead of being a system
initialization file.


Thanks,
Christian
--
You know it's going to be a long day when you get up, shave and shower,
start to get dressed and your shoes are still warm.
-- Dean Webber

--
--
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 visit https://groups.google.com/d/msgid/vim_use/aalJAFYdlrGdz/3M%40256bit.org.

Re: Startup flag with Errors ?

When running the command `vim --startuptime vimlogMessages. The log messages should be written to such a file but that file doesn't exist ? Although when running the mentioned command the below is seen within my shell but the log messages are placed within my vimrc file ?


shellvimerror.png

On Wednesday, March 4, 2026 at 8:47:27 PM UTC-5 Igbanam Ogbuluijah wrote:
Works for me. My Vim version is 

VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Mar 03 2026 19:50:15)
macOS version - arm64
Included patches: 1-100

Try these
  1. Update Vim, and try again.
  2. Read `:h --startuptime` and ensure you're passing in the correct parameters
  3. Try it in a new shell window
In any case, please share more detail when you respond. It's hard to help without knowing details of the environment, version, output, and so on.

Cheers.


Igbanam


On Thu, Mar 5, 2026 at 12:30 AM Christopher <crestchr...@gmail.com> wrote:
When running vim with the --startuptime flag the output isn't clean but with rather dozens of Not an Editor command ?

--
--
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.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/ffd505f3-e529-4a23-90d9-c66e7ce02431n%40googlegroups.com.

--
--
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 visit https://groups.google.com/d/msgid/vim_use/41772cdb-d0ec-4060-94e7-1bb4ee92257cn%40googlegroups.com.

Wednesday, March 4, 2026

Re: Startup flag with Errors ?

Works for me. My Vim version is 

VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Mar 03 2026 19:50:15)
macOS version - arm64
Included patches: 1-100

Try these
  1. Update Vim, and try again.
  2. Read `:h --startuptime` and ensure you're passing in the correct parameters
  3. Try it in a new shell window
In any case, please share more detail when you respond. It's hard to help without knowing details of the environment, version, output, and so on.

Cheers.


Igbanam


On Thu, Mar 5, 2026 at 12:30 AM Christopher <crestchristopher@gmail.com> wrote:
When running vim with the --startuptime flag the output isn't clean but with rather dozens of Not an Editor command ?

--
--
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 visit https://groups.google.com/d/msgid/vim_use/ffd505f3-e529-4a23-90d9-c66e7ce02431n%40googlegroups.com.

--
--
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 visit https://groups.google.com/d/msgid/vim_use/CAOmRJrcxKTvxsg6A2eQfD2m4EahUEfmwHQvFvEuSRbSt%3DqF0cw%40mail.gmail.com.

Startup flag with Errors ?

When running vim with the --startuptime flag the output isn't clean but with rather dozens of Not an Editor command ?

--
--
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 visit https://groups.google.com/d/msgid/vim_use/ffd505f3-e529-4a23-90d9-c66e7ce02431n%40googlegroups.com.

Tuesday, March 3, 2026

Does popup_menu() functions asynchronous?

I try to use popup_menu() in linear code like:

——

func PopupResult(id, sel)
    let g:popup_sel = a:result
    echo "In popup: " .. g:result
endfunc

call popup_menu(["A","B","C"], #{ callback: 'PopupResult' })

echo 'After popup'

——-

but 'After popup' is displayed immediately, not waiting for finish the call. 
Does popup_menu works asynchronous? How can I execute such code in linear way?

Piotr

--
--
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 visit https://groups.google.com/d/msgid/vim_use/78474f86-0bd6-401c-bdc3-fc85b4ca7b45n%40googlegroups.com.