view src/testdir/test22.in @ 25396:8ecd3575bc8c v8.2.3235

patch 8.2.3235: cannot use lambda in {} block in user command Commit: https://github.com/vim/vim/commit/6868634abd6a49b2dfd3a994a6da7d5911457a37 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 28 15:54:54 2021 +0200 patch 8.2.3235: cannot use lambda in {} block in user command Problem: Cannot use lambda in {} block in user command. (Martin Tournoij) Solution: Do not go over the end of the lambda.
author Bram Moolenaar <Bram@vim.org>
date Wed, 28 Jul 2021 16:00:05 +0200
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