view src/testdir/test23.in @ 8899:fe12294683d8 v7.4.1736

commit https://github.com/vim/vim/commit/baa9fcaf4042a6dbe01e64ce63cb54941ee00f09 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 14 17:40:56 2016 +0200 patch 7.4.1736 Problem: Unused variable. Solution: Remove it. (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Thu, 14 Apr 2016 17:45:05 +0200
parents 3fc0f57ecb91
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