Hi,
On Sat, May 18, 2024 at 12:11 PM Lifepillar <[email protected]>
wrote:
> The comment about getting rid of the command line was a bit tongue in
> cheek. But the point is that the command line is pretty limited as a means
> to support script development. Some of the limitations wouldn't go away
> even if the command line provided better support for Vim 9 script (e.g.,
> limited editing possibilities).
>
> Regarding the scratch buffer: what if you want to step? Shall you define
> buffer local mappings?
>
> You may certainly do that (you may even do it in your current Vim buffer):
>
> nnoremap <buffer> <leader>x <scriptcmd>execute 'vim9cmd' getline('.')<cr>+
>
>
> You can also prefix the "source" command with "vim9cmd" and a range to
source a range
of lines in the current buffer as Vim9 script.
Regards,
Yegappan
--
--
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/CAAW7x7k68W%2B2GCc%3Da90wL8wTjKiss5e1A5jvqHo5D8_YnpYNAQ%40mail.gmail.com.