Bram Moolenaar | 292eff0 | 2017-07-11 21:46:28 +0200 | [diff] [blame^] | 1 | " Tests for complicated + argument to :edit command |
2 | function Test_edit() | ||||
3 | call writefile(["foo|bar"], "Xfile1") | ||||
4 | call writefile(["foo/bar"], "Xfile2") | ||||
5 | edit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w | ||||
6 | call assert_equal(["fooPIPEbar"], readfile("Xfile1")) | ||||
7 | call assert_equal(["fooSLASHbar"], readfile("Xfile2")) | ||||
8 | endfunction |