Christian Brabandt wrote: > Hi Bram! > > On Sa, 21 Jul 2012, Bram Moolenaar wrote: > > > That sounds good. I haven't tried the patch yet. Please also write a > > test for this, then send the patch to the vim-dev list so that others > > can try it out and comment. > > > > Several users have asked about operating on the search match, I think > > this is the simplest way that allows to do just about everything. The > > only drawback would be that it uses Visual mode, thus when used in a > > script or mapping it would have to save/restore Visual mode perhaps. > > > > What I will probably use a lot is "gns" to substitute a match with other > > text. Then use "n" and "." to repeat (when the size is fixed) or > > "gns^@" (when the size changes). > > Attached is an updated patch.
Thanks. I tried it out and it works nice for me. I'll include the patch. There might be some corner cases where it does not work properly. Please report this with a reproducable example, so that Christian can fix them :-). -- An error has occurred. Hit any user to continue. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
