Mercurial > vim
comparison runtime/doc/repeat.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 | 3649b5a6b1b6 |
children | e1d1fa6ba1ed |
comparison
equal
deleted
inserted
replaced
28138:d14809743aa0 | 28139:f34afadbef47 |
---|---|
195 | 195 |
196 *:so* *:source* *load-vim-script* | 196 *:so* *:source* *load-vim-script* |
197 :so[urce] {file} Read Ex commands from {file}. These are commands that | 197 :so[urce] {file} Read Ex commands from {file}. These are commands that |
198 start with a ":". | 198 start with a ":". |
199 Triggers the |SourcePre| autocommand. | 199 Triggers the |SourcePre| autocommand. |
200 | |
201 :[range]so[urce] Read Ex commands from the [range] of lines in the | |
202 current buffer. When sourcing commands from the | |
203 current buffer, the same script-ID |<SID>| is used | |
204 even if the buffer is sourced multiple times. | |
205 | |
200 *:source!* | 206 *:source!* |
201 :so[urce]! {file} Read Vim commands from {file}. These are commands | 207 :so[urce]! {file} Read Vim commands from {file}. These are commands |
202 that are executed from Normal mode, like you type | 208 that are executed from Normal mode, like you type |
203 them. | 209 them. |
204 When used after |:global|, |:argdo|, |:windo|, | 210 When used after |:global|, |:argdo|, |:windo|, |