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

137910Re: search with offset

Expand Messages
  • Shlomi Fish
    Jun 1, 2013
    • 0 Attachment
      Hi Marcin,

      On Sat, 1 Jun 2013 11:40:19 +0000
      Marcin Szamotulski <mszamot@...> wrote:

      > Dear Vim Use,
      > Do you know how to repeat vim search preserving the offset. For example
      > /hello/;?Mark?
      > the n and N commands seems to forget about the offset, well actually
      > they forget about the patter and remember only the offset. I would like
      > to repeat the whole search with offset though. The question is if you
      > know a plugin that does it, if not I can implement it myself. I have
      > found that vim remembers the whole search pattern+offset in the search
      > history (:h :histget()).

      You can:

      1. Set up a mark using "ma" or whatever.

      2. Record a register repeat of:


      Then pressing "@s" will keep searching from this mark onward.


      Shlomi Fish

      Shlomi Fish http://www.shlomifish.org/
      List of Portability Libraries - http://shlom.in/port-libs

      SMG: It was 1997-1998ish, Buffy started airing. So one day a group of
      yeshivah pupils arrived to the studios saying they have some numereological
      insights from the Jewish bible, about what will happen in Sunnydale next.

      Please reply to list if it's a mailing list post - http://shlom.in/reply .

      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

      You received this message because you are subscribed to the Google Groups "vim_use" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 5 messages in this topic