summaryrefslogtreecommitdiff
path: root/src/testdir/test23.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test23.in')
-rw-r--r--src/testdir/test23.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/testdir/test23.in b/src/testdir/test23.in
new file mode 100644
index 000000000..0e0e60553
--- /dev/null
+++ b/src/testdir/test23.in
@@ -0,0 +1,15 @@
+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