summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-19 21:42:57 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-19 21:42:57 +0100
commit10b9421f3bb7ac971fa63bd025c4c603c98f4a49 (patch)
treed0e41baa8a966d3071f2ddcb6a142d837547b6dc /runtime
parent12d265315fac9e4f3436c38a87f6d9a23b9e7e2b (diff)
patch 8.2.2531: Vim9: the :k command is obscurev8.2.2531
Problem: Vim9: the :k command is obscure. Solution: Disallow using :k, can use :mark instead. (closes #7874)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/vim9.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt
index def68d312a..bde3c9b7b1 100644
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -96,8 +96,8 @@ script and `:def` functions; details are below:
def CallMe(count: number, message: string): bool
- Call functions without `:call`: >
writefile(['done'], 'file.txt')
-- You cannot use `:xit`, `:t`, `:append`, `:change`, `:insert` or curly-braces
- names.
+- You cannot use `:xit`, `:t`, `:k`, `:append`, `:change`, `:insert` or
+ curly-braces names.
- A range before a command must be prefixed with a colon: >
:%s/this/that
- Unless mentioned specifically, the highest |scriptversion| is used.
@@ -562,11 +562,12 @@ error. A number can be given with and without the []: >
{'456': 'with', '123': 'without'}
-No :xit, :t, :append, :change or :insert ~
+No :xit, :t, :k, :append, :change or :insert ~
These commands are too easily confused with local variable names.
Instead of `:x` or `:xit` you can use `:exit`.
Instead of `:t` you can use `:copy`.
+Instead of `:k` you can use `:mark`.
Comparators ~