view src/testdir/test22.in @ 31039:220215b8a7c9 v9.0.0854

patch 9.0.0854: no proper test for what 9.0.0846 fixes Commit: https://github.com/vim/vim/commit/7265851b2b4e5a63c0a02a9057dee237502ee557 Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Nov 10 13:21:34 2022 +0000 patch 9.0.0854: no proper test for what 9.0.0846 fixes Problem: No proper test for what 9.0.0846 fixes. Solution: Run test in a terminal so that the hit-enter prompt can show up. (closes #11523)
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Nov 2022 14:30: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