diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-03-19 12:56:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-19 12:56:51 +0000 |
commit | 36a5b6867bb6c0bd69c8da7d788000ab8a0b0ab0 (patch) | |
tree | fbf0b74c593ab218dc3c66856d13edb2695128b1 /runtime/doc/repeat.txt | |
parent | 95d2e7634ccd8e0da78086002509a856999e180c (diff) |
patch 8.2.4594: need to write script to a file to be able to source themv8.2.4594
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)
Diffstat (limited to 'runtime/doc/repeat.txt')
-rw-r--r-- | runtime/doc/repeat.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt index ce88a10bec..a775af03a6 100644 --- a/runtime/doc/repeat.txt +++ b/runtime/doc/repeat.txt @@ -197,6 +197,12 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|. :so[urce] {file} Read Ex commands from {file}. These are commands that start with a ":". Triggers the |SourcePre| autocommand. + +:[range]so[urce] Read Ex commands from the [range] of lines in the + current buffer. When sourcing commands from the + current buffer, the same script-ID |<SID>| is used + even if the buffer is sourced multiple times. + *:source!* :so[urce]! {file} Read Vim commands from {file}. These are commands that are executed from Normal mode, like you type |