view src/testdir/test22.in @ 28833:bf013128ccf4 v8.2.4940

patch 8.2.4940: some code is never used Commit: https://github.com/vim/vim/commit/d0132f4862342eebe6d8e7a9096adf956ba6588b Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 12 11:05:40 2022 +0100 patch 8.2.4940: some code is never used Problem: Some code is never used. Solution: Remove dead code. Add a few more test cases.
author Bram Moolenaar <Bram@vim.org>
date Thu, 12 May 2022 12:15:03 +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