diff options
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test14.in | 10 | ||||
-rw-r--r-- | src/testdir/test14.ok | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test14.in b/src/testdir/test14.in index ebcb58c9d..e6816a3f9 100644 --- a/src/testdir/test14.in +++ b/src/testdir/test14.in @@ -47,6 +47,15 @@ j:call search('^$', 'c') /two :call search('.', 'c') :call append(line('$'), getline('.')[col('.') - 1:]) +:" +/^substitute +:s/foo/bar/ +:$put =@/ +/^substitute +:keeppatterns s/asdf/xyz/ +:$put =@/ +/^substitute +Y:$put =@0 :/^search()/,$w >>test.out :qa! ENDTEST @@ -81,6 +90,7 @@ Piece of Java foobar +substitute foo asdf one two search() diff --git a/src/testdir/test14.ok b/src/testdir/test14.ok index 1fd89165e..ae3da2935 100644 --- a/src/testdir/test14.ok +++ b/src/testdir/test14.ok @@ -20,3 +20,6 @@ search() 1 1 two +foo +^substitute +substitute bar xyz |