I think this is a Vim 8.2.4293 bug but as it's from my first vim9script it might be me. Save the following to a file and source it (:so %).
vim9script def Main(): void @a = "one\ntwo\nthree" new put =@a :1d :0put ='This should be the first line.' enddef Main() The result is: one This should be the first line. two three Using :1put! instead of :0put gives the same result. Sourcing the following shows the correct order. function Main() let @a = "one\ntwo\nthree" new put =@a :1d :0put ='This should be the first line.' endfunction call Main() John -- -- You received this message from the "vim_dev" 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_dev" 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_dev/57358a35-0abf-45af-985f-b6e1c5207233n%40googlegroups.com.
