mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
runtime(vim): Update base syntax, fix :map termination in :command RHS
Ensure :map (and :abbreviate) terminate at | when included in :command replacement strings containing commands separated by line continuations. Signed-off-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
@@ -161,3 +161,10 @@ command -range=% -nargs=? -bang Tb {
|
||||
|
||||
command -range=% -nargs=? -bang Tb :<line1>,<line2>s/\v"[^"]*"/\=substitute(submatch(0), " ", "•", "g")/ge
|
||||
|
||||
|
||||
" Unreported issue (:map with trailing bar in replacement text)
|
||||
command! Foo
|
||||
\ map lhs rhs |
|
||||
\ abbreviate foo bar |
|
||||
\ echo "Foo"
|
||||
|
||||
|
Reference in New Issue
Block a user