From 8a3b805c6c9cae341d560df9c3567ebbe42a7404 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 26 Jun 2022 12:21:15 +0100 Subject: Update runtime files --- runtime/doc/map.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'runtime/doc/map.txt') diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt index 91df903a39..91261050d6 100644 --- a/runtime/doc/map.txt +++ b/runtime/doc/map.txt @@ -177,7 +177,7 @@ Because it tries to unmap "@@ ", including the white space before the command separator "|". Other examples with trailing white space: > unmap @@ unmap @@ # Vim9 script comment - unmap @@ " legacy comment + unmap @@ " legacy script comment An error will be issued, which is very hard to identify, because the ending whitespace character in `unmap @@ ` is not visible. @@ -185,8 +185,8 @@ whitespace character in `unmap @@ ` is not visible. A generic solution is to put the command separator "|" right after the mapped keys. After that white space and a comment may follow: > - unmap @@| # Vim9 scriptcomment - unmap @@| " legacy scriptcomment + unmap @@| # Vim9 script comment + unmap @@| " legacy script comment 1.2 SPECIAL ARGUMENTS *:map-arguments* @@ -195,7 +195,8 @@ keys. After that white space and a comment may follow: > "" can be used in any order. They must appear right after the command, before any other arguments. - *:map-local* *:map-* *:map-buffer* *E224* *E225* + *:map-local* *:map-* *:map-buffer* + *E224* *E225* If the first argument to one of these commands is "" the mapping will be effective in the current buffer only. Example: > :map ,w /[.,;] -- cgit v1.2.3