view src/testdir/test_plus_arg_edit.vim @ 11829:f7091bdf552b

Added tag v8.0.0794 for changeset 5a07a3ff56c196fc004d710df087f005d7a86b0e
author Christian Brabandt <cb@256bit.org>
date Fri, 28 Jul 2017 17:00:06 +0200
parents 140d51d5b5c3
children 9e04de2aa738
line wrap: on
line source

" 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"))
endfunction