diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-27 21:33:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-27 21:33:07 +0000 |
commit | a4d131d11052cafcc5baad2273ef48e0dd4d09c5 (patch) | |
tree | ba27f9a8488e23c5fbf95ed42496d39d4ec980e9 /runtime/doc/cmdline.txt | |
parent | 1cae5a0a034d0545360387407a7a409310f1efe2 (diff) |
Update runtime files
Diffstat (limited to 'runtime/doc/cmdline.txt')
-rw-r--r-- | runtime/doc/cmdline.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index 1dc3ebe5d4..1d812207b8 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -1,4 +1,4 @@ -*cmdline.txt* For Vim version 8.2. Last change: 2021 Dec 04 +*cmdline.txt* For Vim version 8.2. Last change: 2021 Dec 26 VIM REFERENCE MANUAL by Bram Moolenaar @@ -705,6 +705,15 @@ Some Ex commands accept a line range in front of them. This is noted as The basics are explained in section |10.3| of the user manual. +In |Vim9| script a range needs to be prefixed with a colon to avoid ambiguity +with continuation lines. For example, "+" can be used for a range but is also +a continuation of an expression: > + var result = start + + print +If the "+" is a range then it must be prefixed with a colon: > + var result = start + :+ print +< *:,* *:;* When separated with ';' the cursor position will be set to that line before interpreting the next line specifier. This doesn't happen for ','. |