Mercurial > vim
comparison runtime/doc/todo.txt @ 28139:f34afadbef47 v8.2.4594
patch 8.2.4594: need to write script to a file to be able to source them
Commit: https://github.com/vim/vim/commit/36a5b6867bb6c0bd69c8da7d788000ab8a0b0ab0
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Mar 19 12:56:51 2022 +0000
patch 8.2.4594: need to write script to a file to be able to source them
Problem: Need to write script to a file to be able to source them.
Solution: Make ":source" use lines from the current buffer. (Yegappan
Lakshmanan et al., closes #9967)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 19 Mar 2022 14:00:03 +0100 |
parents | c968191a8557 |
children | dce918af0c00 |
comparison
equal
deleted
inserted
replaced
28138:d14809743aa0 | 28139:f34afadbef47 |
---|---|
4331 At least use this for error messages. | 4331 At least use this for error messages. |
4332 7 Execute a function with standard option values. No need to save and | 4332 7 Execute a function with standard option values. No need to save and |
4333 restore option values. Especially useful for new options. Problem: how | 4333 restore option values. Especially useful for new options. Problem: how |
4334 to avoid a performance penalty (esp. for string options)? | 4334 to avoid a performance penalty (esp. for string options)? |
4335 - range for ":exec", pass it on to the executed command. (Webb) | 4335 - range for ":exec", pass it on to the executed command. (Webb) |
4336 8 ":{range}source": source the lines from the current file. | |
4337 You can already yank lines and use :@" to execute them. | |
4338 Most of do_source() would not be used, need a new function. | |
4339 It's easy when not doing breakpoints or profiling. | |
4340 Requires copying the lines into a list and then creating a function to | |
4341 execute lines from the list. Similar to getnextac(). | |
4342 7 ":include" command: just like ":source" but doesn't start a new scriptID? | 4336 7 ":include" command: just like ":source" but doesn't start a new scriptID? |
4343 Will be tricky for the list of script names. | 4337 Will be tricky for the list of script names. |
4344 8 Have a look at VSEL. Would it be useful to include? (Bigham) | 4338 8 Have a look at VSEL. Would it be useful to include? (Bigham) |
4345 8 Have a prefix for a function to make it unique. When using packages it | 4339 8 Have a prefix for a function to make it unique. When using packages it |
4346 can be the plugin name. | 4340 can be the plugin name. |