Andy Wokula wrote:
> Help for g& states:
>
> g& Synonym for `:%s//~/&` (repeat last substitute on all
> lines with the same flags).
> Mnemonic: global substitute. {not in Vi}
>
> The part
> (repeat last substitute on all lines with the same flags)
> should say something like
> (repeat last substitute with last search pattern on all lines with
> the same flags)
>
> For example, when you first do a substitution via :s/pattern/repl/flags
> and then /search for something else, `g&` will do `:%s/search/~/&`
> instead of `:s/pattern/repl/flags`.
Thanks, we can use that example.
--
hundred-and-one symptoms of being an internet addict:
11. You find yourself typing "com" after every period when using a word
processor.com
/// 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