view src/testdir/test22.in @ 27432:b63028cbe307 v8.2.4244

patch 8.2.4244: MS-Windows: warning from MSVC on debug build Commit: https://github.com/vim/vim/commit/14cbf77845624e4bfc28a65a5debb81864cba2cf Author: K.Takata <kentkt@csc.jp> Date: Fri Jan 28 18:54:13 2022 +0000 patch 8.2.4244: MS-Windows: warning from MSVC on debug build Problem: MS-Windows: warning from MSVC on debug build. Solution: Adjust "/opt"o options. Remove unused variables. Make variables uppercase for consistency. (Ken Takata, closes #9647)
author Bram Moolenaar <Bram@vim.org>
date Fri, 28 Jan 2022 20: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