view src/testdir/test22.in @ 24154:6e8f49a4a193 v8.2.2618

patch 8.2.2618: Vim9: cannot use a normal list name to store function refs Commit: https://github.com/vim/vim/commit/3f32788000258aabe078b426e3d71962bee9d2d1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 17 20:56:38 2021 +0100 patch 8.2.2618: Vim9: cannot use a normal list name to store function refs Problem: Vim9: cannot use a normal list name to store function refs. Solution: Allow a lower case name if it is indexed.
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 Mar 2021 21:00:04 +0100
parents 30bdd2e4a6f9
children
line wrap: on
line source

Tests for complicated + argument to :edit command

STARTTEST
:$-1w! Xfile1
:$w! Xfile2
:edit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w
:w! test.out
:e Xfile1
:w >> test.out
:qa!
ENDTEST

The result should be in Xfile1: "fooPIPEbar", in Xfile2: "fooSLASHbar"
foo|bar
foo/bar