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
* zero-width patterns
/$
dgn
joins lines (intended?)
/^
dgn
deletes the current line, up to and including the first char of the
next line
/\zs
dgn
deletes 3 characters
--
Andy
--
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