Hi Andy! On Mi, 25 Jul 2012, Andy Wokula wrote:
> Am 25.07.2012 15:06, schrieb Bram Moolenaar: > >Patch 7.3.610 > >Problem: Cannot operate on the text that a search pattern matches. > >Solution: Add the "gn" and "gN" commands. (Christian Brabandt) > >Files: runtime/doc/index.txt, runtime/doc/visual.txt, src/normal.c, > > src/proto/search.pro, src/search.c, src/testdir/test53.in, > > src/testdir/test53.ok > > a few issues ... > > * search for a string (e.g. "search"), type > dgn n . n l l . > (don't type the spaces) starting with the 3rd replacement, deletion > starts at cursor position and the end-of-match position also moves to > the right I had some issues with redoing. It seems to break in the case, that one uses the . command. I am not sure how to fix this. > * zero-width patterns > /$ > dgn > joins lines (intended?) I would say this is correct, so it shouldn't affect 2 lines at once. How can one test, whether a pattern matches zero-width? > > /^ > dgn > deletes the current line, up to and including the first char of the > next line > > /\zs > dgn > deletes 3 characters This is probably the same issue as the /$ case. If I know how to test, whether the search matches only zero-width, I could fix it. regards, Christian -- 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
