diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-01-14 15:53:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-01-14 15:53:51 +0100 |
commit | 14177b77bf7bb9c3f1c7c8805bc6cff1b651c136 (patch) | |
tree | 4fa21e173a18fe911c30d2773d63596c6dd9f689 /src/testdir/test14.in | |
parent | 6d977d6c1c14fa3d8fba2576e461ecaf93dcd884 (diff) | |
download | vim-14177b77bf7bb9c3f1c7c8805bc6cff1b651c136.zip |
updated for version 7.4.150
Problem: :keeppatterns is not respected for :s.
Solution: Check the keeppatterns flag. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/testdir/test14.in')
-rw-r--r-- | src/testdir/test14.in | 10 |
1 files changed, 10 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() |