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

RE: enhancement: wrapscan for ]s

Expand Messages
  • Halim, Salman
    I have got used to having wrapscan on and basically expect all my search-related commands to use its value. I either explicitly turn it off in my scripts or
    Message 1 of 2 , Aug 24 6:43 AM
      I have got used to having wrapscan on and basically expect all my
      search-related commands to use its value. I either explicitly turn it
      off in my scripts or disable it when I use the search() function.

      In other words, I think [s and ]s should use the wrapscan option.

      Salman.

      > -----Original Message-----
      > From: Bram@... [mailto:Bram@...]
      > Sent: Wednesday, August 24, 2005 8:58 AM
      > To: Raphael Finkel
      > Cc: vim-dev@...
      > Subject: Re: enhancement: wrapscan for ]s
      >
      >
      > Raphael Finkel wrote:
      >
      > > It might be nice to have an equivalent of wrapscan for ]s
      > and friends.
      > > That way I don't need to manually move to the start of the file to
      > > continue searching for misspellings.
      >
      > I have been in doubt about this. On one hand it's logical to
      > use 'wrapscan' for "]s" and "[s". But it also gets the same
      > problem: It's less predictable what the command does.
      > Scripts don't know what happens unless they check the
      > 'wrapscan' option.
      >
      > Adding another option, e.g., 'spellwrapscan' won't solve
      > that. I think "]s" and "[s" look a lot like searching, thus
      > re-using 'wrapscan' would be OK.
      >
      > What do others think about using 'wrapscan' for "]s" and "[s"?
      >
      > --
      > From "know your smileys":
      > C=}>;*{)) Drunk, devilish chef with a toupee in an updraft,
      > a mustache, and a double chin
      >
      > /// Bram Moolenaar -- Bram@... --
      > http://www.Moolenaar.net \\\
      > /// Sponsor Vim, vote for features --
      > http://www.Vim.org/sponsor/ \\\
      > \\\ Project leader for A-A-P --
      > http://www.A-A-P.org ///
      > \\\ Buy LOTR 3 and help AIDS victims --
      > http://ICCF.nl/lotr.html ///
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.