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`.

--
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

Raspunde prin e-mail lui