aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_plus_arg_edit.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-09-09 19:54:27 +0200
committerGitHub <noreply@github.com>2018-09-09 19:54:27 +0200
commitbbbed9fc6613c5b69d4ed471ff60d31246c03e35 (patch)
tree4afbea8273f2f06772e86dfee4302cedc655b689 /src/nvim/testdir/test_plus_arg_edit.vim
parentdd0dd4d78d65cf3a5a75dfceaf0dbf6f4d97501c (diff)
parentfe81b926d394d719a8a2cd31f0dfd7d4675a9c6a (diff)
downloadrneovim-bbbed9fc6613c5b69d4ed471ff60d31246c03e35.tar.gz
rneovim-bbbed9fc6613c5b69d4ed471ff60d31246c03e35.tar.bz2
rneovim-bbbed9fc6613c5b69d4ed471ff60d31246c03e35.zip
Merge #8063 from blueyed/vim-8.0.0708
Diffstat (limited to 'src/nvim/testdir/test_plus_arg_edit.vim')
-rw-r--r--src/nvim/testdir/test_plus_arg_edit.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_plus_arg_edit.vim b/src/nvim/testdir/test_plus_arg_edit.vim
new file mode 100644
index 0000000000..71dbea1991
--- /dev/null
+++ b/src/nvim/testdir/test_plus_arg_edit.vim
@@ -0,0 +1,10 @@
+" Tests for complicated + argument to :edit command
+function Test_edit()
+ call writefile(["foo|bar"], "Xfile1")
+ call writefile(["foo/bar"], "Xfile2")
+ edit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w
+ call assert_equal(["fooPIPEbar"], readfile("Xfile1"))
+ call assert_equal(["fooSLASHbar"], readfile("Xfile2"))
+ call delete('Xfile1')
+ call delete('Xfile2')
+endfunction