> On Wed, April 6, 2011 6:20 pm, Tim Chase wrote:
>> On 04/06/2011 11:00 AM, Christian Brabandt wrote:
>>> Simply assign your search string directly to the search-register, e.g.
>>> if you have your search string in the Clipboard, use:
>>> :let @/=@+
>>> and press n to jump to the next occurence.
>>>
>>> Of course you can also assign it manually:
>>> :let @/='/path/with/many/slashes'
>>
>> Or you can search backwards with "?":
>>
>> ?/path/to/wherever/with/slashes
>>
>> If you want to change the direction of the search (rather than
>> using the somewhat awkwardly-inverted n/N commands), you can then
>> search forwards with no search criteria which will reuse the
>> previous pattern without the need to escape it.
>>
>
> *g*, when searching backwards, I always get confused, whether to use
> n/N for my desired direction. Is 'n' keeping the direction or searching
> forward? And if 'N' reverses the direction and ? also reverses the
> direction this reverses twice? That is too confusing for me...
>
> So I try to avoid ?-search and jump to a place from which I can search
> forward.
>
> regards,
> Christian
>
? n n n n searches repeatedly backwards. Then hit N to search forward,
and n to search backward again.
Best regards,
Tony.
--
"Death is nature's way of saying `Howdy'".
--
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:
Post a Comment