> Hello,
> The answers are correct. Thank you.
> I still have a problem with the foldd command.
> Applied to a file without any fold, the following commands should
> behave exactly the same:
>
> :%s/foobar/foo/gc
> :foldd s/foobar/foo/gc
>
> Please create a file with the two following lines:
> dimension pfusm(10),parmat(10)
> data nbpfusm/1/,pfusm/200.e6,9*0./
> Applying the following command (from the top):
> :foldd s/pfus/pfas/gc
> and typing y 3 times gives the answer:
> 3 substitutioons on 2 lines (OK)
> Going back to the top (gg) and typing:
> :foldd s/pfas/pfus/gc
> and typing y 3 times gives the answer:
> 6 substitutioons on 4 lines (not OK)
>
> Now, if you do exactly the same with
> :%s/pfus/pfas/gc
> then
> :%s/pfas/pfus/gc
> you get "3 substitutions on 2 lines" twice, which is OK.
> It looks like a bug.
>
> Can you reproduce that.
>
> Best regards.
>
> Jean Johner
Looks very much like a bug.
Seems the :s command tries to be clever when used with :folddoopen
and cumulates the result counts of each invocation.
But somehow the very first init fails.
My version is still 7.2.218, but I don't think this has already
been fixed.
--
Andy
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment