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

Re: function to apply multiple whole-file substitutions

Expand Messages
  • Tim Chase
    ... Just a little correction: it searches for whatever you searched for last. (referenced in :help g& and more explicitly above :help complex-repeat ) -tim
    Message 1 of 6 , Nov 2, 2011
    View Source
    • 0 Attachment
      On 11/01/11 22:24, Sven Guckes wrote:
      > * eda wizard<edawizard@...> [2011-11-02 04:17]:
      >> function Scrub ()
      >> :%s// /g
      >> :%s/\s*$//g
      >> endfunction
      >> map :call Scrub ()
      >>
      >> but it's not working,
      >
      > the first substitution searches for *nothing*,

      Just a little correction: it searches for whatever you searched
      for last. (referenced in ":help g&" and more explicitly above
      ":help complex-repeat")

      -tim



      --
      You received this message from the "vim_use" 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.