Loading ...
Sorry, an error occurred while loading the content.
 

Re: Mistake in help for g&

Expand Messages
  • Bram Moolenaar
    ... 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
    Message 1 of 2 , Nov 2, 2012
      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 -- Bram@... -- 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
    Your message has been successfully submitted and would be delivered to recipients shortly.