Yes, your are right- the bwipeout command succeeds without the double quotes in vim9script. Thanks for the solution!
Given that, what feature of vim9script causes the error when double quotes are used? In legacy vimscript, it doesn't matter if double quotes are present or not. Perhaps this should be added to vim9-differences documentation. On Monday, May 13, 2024 at 1:16:25 PM UTC-4 Christian J. Robinson wrote: Try it without the quotes: bwipeout % On Mon, May 13, 2024 at 10:55 AM Michael Soyka <mss...@gmail.com> wrote: In the process of converting a file from vimscript to vim9script, I came across the following inconsistent behavior with the ex-command bwipeout "%". I'm running gvim 9.1.136 in Windows 10. The problem is demonstrated by the two scripts below. bwipeoutBug.vim: " Source this script, then enter the ex-command :call BWO(). " The "wipeout "%" command succeeds " edit $VIMRUNTIME/filetype.vim function! g:BWO() bwipeout "%" endfunction bwipeoutBug9.vim: vim9script # Source this script, then enter the ex-command :call BWO9(). # The "wipeout "%" command returns E94: No matching buffer for "%" # edit $VIMRUNTIME/filetype.vim def g:BWO9() bwipeout "%" enddef -- -- 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 vim_dev+u...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/4ae54f87-8773-4058-b7be-bd45e30d6682n%40googlegroups.com <https://groups.google.com/d/msgid/vim_dev/4ae54f87-8773-4058-b7be-bd45e30d6682n%40googlegroups.com?utm_medium=email&utm_source=footer> . -- Christian J. Robinson <hep...@gmail.com> -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/291eff62-3545-4260-8ff3-a920bb7731ean%40googlegroups.com.