Sunday, January 2, 2022

Re: :so should take a range ?

hello,

> Builtin :source adds file into the scripts list (cf. :scriptnames) and
> assigns script id (aka SID) which is essential for s: scope support. It
> won't be easy to reuse this SID by "a ranged source". And bringing "an
> incomplete feature" into the core could be too much confusing.

thanks for this answer. totally agreed!

> BTW. Using getline()+execute() or simply yanking and then executing a
> register with :@0 looks nicer, imo, then storing data into temporary file.

wow... i wasn't aware of :@ and 99% of the usage of this macro can be
solved by one of those: Y:@0<cr> or yap:@0<cr>.

i deprecate So and probably will remove it. thanks a lot.

marc

--
--
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 on the web visit https://groups.google.com/d/msgid/vim_use/YdG5S/4EF49RKOCh%40prometheus.u-strasbg.fr.

No comments: