Saturday, November 12, 2011

Re: can I search no backwards?

On 11/12/11 13:14, jason.桂林 wrote:
> I want to find next ')' and insert a comma, I use
>
> /)<cr>i,
>
> but sometimes if there is no ) forward, it goes backward search, not what I
> want, can I force it search forward?

You want to toggle the 'wrapscan' option:

:set nowrapscan

-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

No comments: