As also wrote on github, I second this. However: 1. vim9 variables are script-scoped. If you declare from the command line, e.g. `:var a = 0` what shall be the scope of `a`? 2. Having an option set vim9cmdline (false as default) to switch the command line interpreter between legacy and vim9 script looks a viable idea to me
My 2 cents, /Ubaldo On Wednesday 15 May 2024 at 10:57:01 UTC+2 Girish wrote: > Can this feature be added without major upheaval? Basically, I want to > execute vim9 script without typing 'vim9cmd' in command line. Turn off > legacy script in command line, and only use vim9 script. Today, we cannot > even declare a vim9 variable in command line. -- -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/fd62e037-5dd9-4cb4-a074-21dc05b048afn%40googlegroups.com.
