aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-11-30 22:43:08 -0500
committerJustin M. Keyes <justinkz@gmail.com>2018-12-01 04:43:08 +0100
commita9e368a7050c86dff36d80dc1cced21de14dd3ac (patch)
tree78889b8ab7b01a3b299128e755431f6bc0e10e27 /runtime
parent0ce880083d1faeebaecd393fc28e443b19862540 (diff)
downloadrneovim-a9e368a7050c86dff36d80dc1cced21de14dd3ac.tar.gz
rneovim-a9e368a7050c86dff36d80dc1cced21de14dd3ac.tar.bz2
rneovim-a9e368a7050c86dff36d80dc1cced21de14dd3ac.zip
vim-patch:8.1.0553: it is not easy to edit a script that was sourced (#9298)
Problem: It is not easy to edit a script that was sourced. Solution: Add a count to ":scriptnames", so that ":script 40" edits the script with script ID 40. https://github.com/vim/vim/commit/07dc18ffa4e7ed202f219fe2fd3d6f58246f71f9
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/repeat.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt
index 82a8c4c5cc..23ae3458ea 100644
--- a/runtime/doc/repeat.txt
+++ b/runtime/doc/repeat.txt
@@ -305,6 +305,9 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
first sourced. The number is used for the script ID
|<SID>|.
+:scr[iptnames][!] {scriptId} *:script*
+ Edit script {scriptId}. Suggested name is ":script".
+
*:fini* *:finish* *E168*
:fini[sh] Stop sourcing a script. Can only be used in a Vim
script file. This is a quick way to skip the rest of